Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

D3D_SHADER_MACRO structure

Defines a shader macro.

Syntax


typedef struct _D3D_SHADER_MACRO {
  LPCSTR Name;
  LPCSTR Definition;
} D3D_SHADER_MACRO, *LPD3D_SHADER_MACRO;

Members

Name

The macro name.

Definition

The macro definition.

Remarks

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[] = { "zero", "0", NULL, NULL };


The following shader or effect creation functions take an array of shader macros as an input parameter:

Requirements

Header

D3DCommon.h

See also

Common Version Structures

 

 

Show:
© 2017 Microsoft