C# 클래스 TagTool.Shaders.ShaderCompiler

Utility class for invoking the D3D shader compiler functions.
파일 보기 프로젝트 열기: TheGuardians/TagTool 1 사용 예제들

공개 메소드들

메소드 설명
Assemble ( string code, string &errors ) : byte[]

Assembles HLSL shader assembly.

Disassemble ( byte shader ) : string

Disassembles HLSL shader bytecode.

비공개 메소드들

메소드 설명
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

메소드 상세

Assemble() 공개 정적인 메소드

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.
리턴 byte[]

Disassemble() 공개 정적인 메소드

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