D3D_SHADER_DATA Structure

Describes shader data.

Syntax

typedef struct _D3D_SHADER_DATA {
    LPCVOID pBytecode;
    SIZE_T BytecodeLength;
} D3D_SHADER_DATA;  

Members

pBytecode
A pointer to shader data.

BytecodeLength
Length of shader data that pBytecode points to.

Remarks

An array of D3D_SHADER_DATA structures is passed to D3DCompressShaders to compress the shader data into a more compact form.

Requirements

Header: Declared in d3dcompiler.h.

Library: Use d3d11.lib.