DXC compiler interface.
More...
#include <DXCompiler.hpp>
|
virtual ShaderVersion | GetMaxShaderModel ()=0 |
| Returns the maximum shader model supported by the compiler.
|
|
virtual bool | IsLoaded ()=0 |
| Returns true if the compiler is loaded and ready to use.
|
|
virtual Version | GetVersion ()=0 |
| Returns the compiler version.
|
|
virtual const std::string & | GetLibraryName () const =0 |
| Returns the name of the DX Compiler library.
|
|
virtual bool | Compile (const CompileAttribs &Attribs)=0 |
|
virtual bool | RemapResourceBindings (const TResourceBindingMap &ResourceMap, IDxcBlob *pSrcBytecode, IDxcBlob **ppDstByteCode)=0 |
|
virtual void | GetD3D12ShaderReflection (IDxcBlob *pShaderBytecode, ID3D12ShaderReflection **ppShaderReflection)=0 |
| Attempts to extract shader reflection from the bytecode using DXC.
|
|
◆ Compile()
virtual bool Diligent::IDXCompiler::Compile |
( |
const CompileAttribs & | Attribs | ) |
|
|
pure virtual |
Compiles HLSL source code to DXIL or SPIRV.
◆ RemapResourceBindings()
virtual bool Diligent::IDXCompiler::RemapResourceBindings |
( |
const TResourceBindingMap & | ResourceMap, |
|
|
IDxcBlob * | pSrcBytecode, |
|
|
IDxcBlob ** | ppDstByteCode ) |
|
pure virtual |
- Parameters
-
[in] | ResourceMap | - Resource binding map. For every resource in the source byte code it must define the binding (shader register and space). |
[in] | pSrcBytecode | - Source byte code. |
[out] | ppDstByteCode | - Memory location where the pointer to the byte code with the remapped bindings will be written. |
- Returns
- true if the remapping was successful, and false otherwise.