Class ShaderCompilerDX
Implementation of shaders compiler for DirectX platform using https://github.com/microsoft/DirectXShaderCompiler.
Inheritance
ShaderCompilerDX
Inherited Members
ShaderCompilerDX
Assembly: FlaxEngine.dll
File: Engine/ShadersCompilation/DirectX/ShaderCompilerDX.h
Syntax
public class ShaderCompilerDX : public ShaderCompiler
Constructors
~ShaderCompilerDX()
ShaderCompilerDX(ShaderProfile profile, PlatformType platform=(PlatformType) 0, void* dxcCreateInstanceProc=nullptr)
Initializes a new instance of the ShaderCompilerDX class.
Declaration
public ShaderCompilerDX(ShaderProfile profile, PlatformType platform=(PlatformType) 0, void* dxcCreateInstanceProc=nullptr)
Parameters
|
ShaderProfile
profile
The profile. |
|
PlatformType
platform
The platform. |
|
void
dxcCreateInstanceProc
The custom DXC Compiler factory function. |
Methods
CompileShader(ShaderFunctionMeta& meta, WritePermutationData customDataWrite=nullptr)
Declaration
protected virtual bool CompileShader(ShaderFunctionMeta& meta, WritePermutationData customDataWrite=nullptr) override
Parameters
|
ShaderFunctionMeta
meta
|
|
WritePermutationData
customDataWrite
|
Returns
|
bool
|
Overrides
GetArgs(ShaderFunctionMeta& meta, Array<const Char* , InlinedAllocation<250>>& args)
Declaration
protected virtual void GetArgs(ShaderFunctionMeta& meta, Array<const Char* , InlinedAllocation<250>>& args)
Parameters
|
ShaderFunctionMeta
meta
|
|
Array<Char , InlinedAllocation<250>>
args
|
OnCompileBegin()
Declaration
protected virtual bool OnCompileBegin() override
Returns
|
bool
|