Defines a shader macro.
typedef struct _D3D_SHADER_MACRO {
LPCSTR Name;
LPCSTR Definition;
} D3D_SHADER_MACRO, *LPD3D_SHADER_MACRO;
Name
The macro name.
Definition
The macro definition.
You can use shader macros in your shaders. The D3D_SHADER_MACRO structure defines a single shader macro as shown in the following example:
D3D_SHADER_MACRO Shader_Macros[1] = { "zero", "0" };
The following shader or effect creation functions take an array of shader macros as an input parameter:
Header: Declared in d3d11_x.h (d3dcommon.h on other Windows platforms).