C# Class TagTool.Shaders.ShaderCompiler

Utility class for invoking the D3D shader compiler functions.
Datei anzeigen Open project: TheGuardians/TagTool Class Usage Examples

Public Methods

Method Description
Assemble ( string code, string &errors ) : byte[]

Assembles HLSL shader assembly.

Disassemble ( byte shader ) : string

Disassembles HLSL shader bytecode.

Private Methods

Method Description
D3DAssemble ( [ pSrcData, uint SrcDataSize, [ pSourceName, IntPtr pDefines, IntPtr pInclude, uint Flags, ID3DBlob &ppCode, ID3DBlob &ppErrorMsgs ) : int
D3DDisassemble ( IntPtr pSrcData, uint SrcDataSize, uint Flags, [ szComments, ID3DBlob &ppDisassembly ) : int

Method Details

Assemble() public static method

Assembles HLSL shader assembly.
public static Assemble ( string code, string &errors ) : byte[]
code string The code to assemble.
errors string Pointer to a string to receive error messages. Will be set to null if errors are not available.
return byte[]

Disassemble() public static method

Disassembles HLSL shader bytecode.
public static Disassemble ( byte shader ) : string
shader byte The shader to disassemble.
return string