Diligent Engine  v.2.4.g
Namespaces | Functions
ShaderToolsCommon.hpp File Reference
#include "GraphicsTypes.h"
#include "Shader.h"
#include "RefCntAutoPtr.hpp"
#include "DataBlob.h"

Go to the source code of this file.

Namespaces

 Diligent
 The library uses Direct3D-style math:
 

Functions

const ShaderMacro * Diligent::GetShaderTypeMacros (SHADER_TYPE Type)
 Returns shader type definition macro(s), e.g., for a vertex shader: More...
 
void Diligent::AppendShaderMacros (std::string &Source, const ShaderMacro *Macros)
 Appends shader macro definitions to the end of the source string: More...
 
void Diligent::AppendShaderTypeDefinitions (std::string &Source, SHADER_TYPE Type)
 Appends the shader type definition macro(s), e.g., for a vertex shader: More...
 
const char * Diligent::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. More...
 
void Diligent::AppendShaderSourceCode (std::string &Source, const ShaderCreateInfo &ShaderCI) noexcept(false)
 Appends shader source code to the source string. More...