D3D11X_GS_PARAMETERS Structure

Geometry shader parameters.

Syntax

typedef struct D3D11X_GS_PARAMETERS {
    UINT Size;
    UINT Flags;
    UINT VerticesPerSubgroup;
    UINT PrimitivesPerSubgroup;
    float VerticesPerPrimitiveRatio;
    UINT LdsAllocationLimit;
} D3D11X_GS_PARAMETERS;  

Members

Size
Size of this structure, in bytes.

Flags
Flags to control geometry shader execution and enable other values found in this structure, as bitwise-OR’d D3D11X_GS_FLAGS enumeration constants.

VerticesPerSubgroup
The number of vertices per subgroup. See the Remarks section. This field is only valid (honored) when Flags contains D3D11X_GS_OVERRIDE_VERTICES_PER_SUBGROUP.

PrimitivesPerSubgroup
The number of primitives per subgroup. See the Remarks section. This field is only valid (honored) when Flags contains D3D11X_GS_OVERRIDE_PRIMITIVES_PER_SUBGROUP.

VerticesPerPrimitiveRatio
Estimated ratio of vertices to primitives per subgroup, taking into account vertex reuse. This field is only valid (honored) when Flags contains D3D11X_GS_ONCHIP and D3D11X_GS_OVERRIDE_VERTICES_PER_PRIMITIVE_RATIO.

LdsAllocationLimit
Target LDS usage per subgroup, in bytes. This field is only valid (honored) when Flags contains D3D11X_GS_ONCHIP and D3D11X_GS_OVERRIDE_LDS_ALLOCATION_LIMIT.

Remarks

This structure is passed into ID3D11DeviceContextX::GSSetParameters (see Remarks there) and is output by ID3D11DeviceContextX::GSGetLastUsedParameters.

Requirements

Header: Declared in d3d11_x.h.