|
Nameless Engine
|
#include <RootSignatureGenerator.h>
Public Types | |
| enum class | Type { CONSTANTS , CBV , SRV , UAV , SAMPLER } |
Public Member Functions | |
| RootParameter ()=default | |
| RootParameter (UINT iBindPoint, UINT iSpace, Type type, bool bIsTable=false, UINT iCount=1) | |
| CD3DX12_ROOT_PARAMETER | generateSingleDescriptorDescription () const |
| CD3DX12_DESCRIPTOR_RANGE | generateTableRange () const |
| D3D12_SHADER_VISIBILITY | getVisibility () const |
| bool | isTable () const |
Private Attributes | |
| UINT | iBindPoint = 0 |
| UINT | iSpace = 0 |
| Type | type |
| UINT | iCount = 0 |
| bool | bIsTable = false |
| D3D12_SHADER_VISIBILITY | visibility = D3D12_SHADER_VISIBILITY_ALL |
Wrapper for D3D root parameter type.
|
strong |
Describes a root parameter type.
|
default |
Creates uninitialized parameter.
| ne::RootSignatureGenerator::RootParameter::RootParameter | ( | UINT | iBindPoint, |
| UINT | iSpace, | ||
| RootParameter::Type | type, | ||
| bool | bIsTable = false, |
||
| UINT | iCount = 1 |
||
| ) |
Initializes a root parameter.
| iBindPoint | Register binding index. |
| iSpace | Register space. |
| type | Root parameter type. |
| bIsTable | true to initialize this parameter as descriptor table (even if descriptor count is 1), otherwise false to initialize it as just one descriptor. |
| iCount | If type is table them defined the number of descriptors this parameter stores, if type is constants then the number of 32 bit constants, otherwise ignored. |
| CD3DX12_ROOT_PARAMETER ne::RootSignatureGenerator::RootParameter::generateSingleDescriptorDescription | ( | ) | const |
Generates root parameter description that describes a single descriptor.
| CD3DX12_DESCRIPTOR_RANGE ne::RootSignatureGenerator::RootParameter::generateTableRange | ( | ) | const |
Generates root table range description.
| D3D12_SHADER_VISIBILITY ne::RootSignatureGenerator::RootParameter::getVisibility | ( | ) | const |
Returns visibility of this parameter.
| bool ne::RootSignatureGenerator::RootParameter::isTable | ( | ) | const |
Tells whether this parameter describes a descriptor table or just a single view.
true if generateTableRange should be used, otherwise generateSingleDescriptorDescription.
|
private |
Whether this parameter should be initialized as descriptor table or not.
|
private |
Binding register index.
|
private |
|
private |
Binding register space.
|
private |
Parameter type.
|
private |
Visibility of this parameter.