Nameless Engine
Loading...
Searching...
No Matches
ne::HlslShaderResourceHelpers Class Reference

#include <HlslShaderResourceHelpers.h>

Static Public Member Functions

static std::variant< unsigned int, ErrorgetRootParameterIndexFromPipeline (Pipeline *pPipeline, const std::string &sShaderResourceName)
 

Detailed Description

Provides static helper functions that HLSL shader resources use.

Member Function Documentation

◆ getRootParameterIndexFromPipeline()

std::variant< unsigned int, Error > ne::HlslShaderResourceHelpers::getRootParameterIndexFromPipeline ( Pipeline pPipeline,
const std::string &  sShaderResourceName 
)
static

Looks for a root parameter that is used for the resource with the specified name.

Parameters
pPipelinePipeline to look for resource.
sShaderResourceNameResource name to look for.
Returns
Error if something went wrong, otherwise root parameter index of the resource with the specified name.

The documentation for this class was generated from the following files: