IDXCompiler class
DXC compiler interface.
Contents
- Reference
Public functions
- auto RemapResourceBindings(const TResourceBindingMap& ResourceMap, IDxcBlob* pSrcBytecode, IDxcBlob** ppDstByteCode) -> bool pure virtual
- Remaps resource bindings (shader registers and spaces) in the source byte code using the resource binding map.
- void GetD3D12ShaderReflection(IDxcBlob* pShaderBytecode, ID3D12ShaderReflection** ppShaderReflection) pure virtual
- Attempts to extract shader reflection from the bytecode using DXC.
Function documentation
bool Diligent:: IDXCompiler:: RemapResourceBindings(const TResourceBindingMap& ResourceMap,
IDxcBlob* pSrcBytecode,
IDxcBlob** ppDstByteCode) pure virtual
Remaps resource bindings (shader registers and spaces) in the source byte code using the resource binding map.
| Parameters | |
|---|---|
| ResourceMap in | - Resource binding map. For every resource in the source byte code it must define the binding (shader register and space). |
| pSrcBytecode in | - Source byte code. |
| ppDstByteCode out | - Memory location where the pointer to the byte code with the remapped bindigs will be written. |
| Returns | true if the remapping was successfull, and false otherwise. |