MidiVid Home 

CompileShaderInfo Struct Reference

List of all members.

Detailed Description

This structure is used to pass information to the shader compilation functions in the MidiVidInterface class. Many of the parameters passed through this structure are used directly by the D3DXCompileShader function, so you should refer to that documentation for the various arguments supported.
See also:
MidiVidInterface::CompileVertexShader, MidiVidInterface::CompilePixelShader


Public Attributes

const char * pShaderSource
 Pointer to the HLSL source code for the shader to compile.
UINT SourceLen
 Length of the source code to be compiled.
D3DXMACRO * pDefines
 Pointer to the D3DXMACRO object containing pre-defined macros for the shader compilation.
LPD3DXINCLUDE pInclude
 Pointer to the D3DXINCLUDE object to handle includes in the shader source.
const char * pFuncName
 Name of the function to use as the entry point.
const char * pProfile
 Name of the vertex or pixel shader profile to compile for (defaults to the highest supported hardware profile).
DWORD Flags
 Flags to enable during the compilation - Defaults to D3DXSHADER_PARTIALPRECISION.
LPD3DXCONSTANTTABLE * ppConsts
 Pointer to the D3DXCONSTANTTABLE pointer used to return the constant table for this shader.


Member Data Documentation

CompileShaderInfo::pShaderSource
 

This is a pointer to the shader data to be compiled by the function.

See also:
SourceLen

CompileShaderInfo::SourceLen
 

The length of the source code to be compiled.

See also:
pShaderSource

CompileShaderInfo::pDefines
 

D3DXMACRO pointer

CompileShaderInfo::pInclude
 

D3DXINCLUDE pointer

CompileShaderInfo::pFuncName
 

The name of the function to be compiled as the entry point of the shader.

CompileShaderInfo::pProfile
 

The string representing the vertex or pixel shader profile to target when compiling this shader.

CompileShaderInfo::Flags
 

Compilation flags for D3DXCompileShader

CompileShaderInfo::ppConsts
 

Pointer to a D3DXCONSTANTTABLE pointer which receives the pointer to the constant table for the compiled shader.


The documentation for this struct was generated from the following files:

MidiVid GPU Version 1.0
Copyright (c) 2005 Jason Dorie and VUTAG
Generated on: Sun Jan 25 23:45:41 2009