D3D12DDI_STATE_OBJECT_TYPE Enumeration

State objects have a type that dictates rules about the subobjects they contain and how the state objects can be used.

Syntax

typedef enum D3D12DDI_STATE_OBJECT_TYPE {
  D3D12DDI_STATE_OBJECT_TYPE_COLLECTION,
  D3D12DDI_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE
} ;

Constants

D3D12DDI_STATE_OBJECT_TYPE_COLLECTION A collection can contain any amount of subobjects, but doesn’t have constraints. Not all dependencies that the included subobjects have must be resolved in the same collection Even if dependencies are locally defined, the set of subobjects doesn’t have to be the complete set of state that will eventually be used on the GPU. For instance, a collection may not include all shaders needed to *raytrace* a scene, though it could.

The purpose of a collection is to allow an application to pass an arbitrarily large or small collection of state to drivers to compile at once (e.g. on a given thread).

D3D12DDI_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE An RTPSO (ray tracing pipeline state object) represents a full set of shaders that could be reachable by a DispatchRays() call, with all configuration options resolved, such as local root signatures and other state.

An RTPSO can be thought of as an executable state object.

Requirements

   
Minimum supported client Windows 10, version 1809
Header d3d12umddi.h