Go to the documentation of this file.
73 IShaderSourceInputStreamFactory* pShaderSourceStreamFactory,
75 RefCntAutoPtr<IDataBlob>& pFileData,
76 size_t& SourceCodeLen) noexcept(
false);
SHADER_TYPE
Describes the shader type.
Definition: GraphicsTypes.h:65
const char * ReadShaderSourceFile(const char *SourceCode, IShaderSourceInputStreamFactory *pShaderSourceStreamFactory, const char *FilePath, RefCntAutoPtr< IDataBlob > &pFileData, size_t &SourceCodeLen) noexcept(false)
Reads shader source code from a file or uses the one from the shader create info.
Definition: ShaderToolsCommon.cpp:103
void AppendShaderTypeDefinitions(std::string &Source, SHADER_TYPE Type)
Appends the shader type definition macro(s), e.g., for a vertex shader:
Definition: ShaderToolsCommon.cpp:97
struct ShaderMacro ShaderMacro
Definition: Shader.h:174
const D3D12_PIPELINE_STATE_SUBOBJECT_TYPE Type
Definition: PipelineStateD3D12Impl.cpp:69
struct ShaderCreateInfo ShaderCreateInfo
Definition: Shader.h:352
void AppendShaderMacros(std::string &Source, const ShaderMacro *Macros)
Appends shader macro definitions to the end of the source string:
Definition: ShaderToolsCommon.cpp:82
void AppendShaderSourceCode(std::string &Source, const ShaderCreateInfo &ShaderCI) noexcept(false)
Appends shader source code to the source string.
Definition: ShaderToolsCommon.cpp:145
const ShaderMacro * GetShaderTypeMacros(SHADER_TYPE Type)
Returns shader type definition macro(s), e.g., for a vertex shader:
Definition: ShaderToolsCommon.cpp:55
The library uses Direct3D-style math:
Definition: AdvancedMath.hpp:37