ReShade
A generic post-processing injector for games and video software.
Public Member Functions | Public Attributes | List of all members
reshade::api::shader_group Struct Reference

Describes a ray tracing shader group. More...

#include <reshade_api_pipeline.hpp>

Public Member Functions

 shader_group ()
 
 shader_group (shader_group_type type, uint32_t closest_hit_shader_index, uint32_t any_hit_shader_index=UINT32_MAX, uint32_t intersection_shader_index=UINT32_MAX)
 

Public Attributes

shader_group_type type
 Type of the shader group. More...
 
union {
   struct {
      uint32_t   shader_index
 Index of the shader in the ray generation shader pipeline subobject. More...
 
   }   raygen
 Used when type is shader_group_type::raygen. More...
 
   struct {
      uint32_t   shader_index
 Index of the shader in the miss shader pipeline subobject. More...
 
   }   miss
 Used when type is shader_group_type::miss. More...
 
   struct {
      uint32_t   closest_hit_shader_index
 Index of the shader in the closest-hit shader pipeline subobject. Set to -1 (UINT32_MAX) to indicate that this shader type is not used in the hit group. More...
 
      uint32_t   any_hit_shader_index
 Index of the shader in the any-hit shader pipeline subobject. Set to -1 (UINT32_MAX) to indicate that this shader type is not used in the hit group. More...
 
      uint32_t   intersection_shader_index
 Index of the shader in the intersection shader pipeline subobject. Set to -1 (UINT32_MAX) to indicate that this shader type is not used in the hit group. More...
 
   }   hit_group
 Used when type is shader_group_type::hit_group_triangles or shader_group_type::hit_group_aabbs. More...
 
   struct {
      uint32_t   shader_index
 Index of the shader in the callable shader pipeline subobject. More...
 
   }   callable
 Used when type is shader_group_type::callable. More...
 
}; 
 

Detailed Description

Describes a ray tracing shader group.

Constructor & Destructor Documentation

◆ shader_group() [1/2]

reshade::api::shader_group::shader_group ( )
inline

◆ shader_group() [2/2]

reshade::api::shader_group::shader_group ( shader_group_type  type,
uint32_t  closest_hit_shader_index,
uint32_t  any_hit_shader_index = UINT32_MAX,
uint32_t  intersection_shader_index = UINT32_MAX 
)
inline

Member Data Documentation

◆ 

union { ... }

◆ any_hit_shader_index

uint32_t reshade::api::shader_group::any_hit_shader_index

Index of the shader in the any-hit shader pipeline subobject. Set to -1 (UINT32_MAX) to indicate that this shader type is not used in the hit group.

See also
pipeline_subobject_type::any_hit_shader

◆ 

struct { ... } reshade::api::shader_group::callable

Used when type is shader_group_type::callable.

◆ closest_hit_shader_index

uint32_t reshade::api::shader_group::closest_hit_shader_index

Index of the shader in the closest-hit shader pipeline subobject. Set to -1 (UINT32_MAX) to indicate that this shader type is not used in the hit group.

See also
pipeline_subobject_type::closest_shader

◆ 

struct { ... } reshade::api::shader_group::hit_group

◆ intersection_shader_index

uint32_t reshade::api::shader_group::intersection_shader_index

Index of the shader in the intersection shader pipeline subobject. Set to -1 (UINT32_MAX) to indicate that this shader type is not used in the hit group.

See also
pipeline_subobject_type::intersection_shader

◆ 

struct { ... } reshade::api::shader_group::miss

Used when type is shader_group_type::miss.

◆ 

struct { ... } reshade::api::shader_group::raygen

Used when type is shader_group_type::raygen.

◆ shader_index

uint32_t reshade::api::shader_group::shader_index

Index of the shader in the ray generation shader pipeline subobject.

Index of the shader in the callable shader pipeline subobject.

Index of the shader in the miss shader pipeline subobject.

See also
pipeline_subobject_type::raygen_shader
See also
pipeline_subobject_type::miss_shader
See also
pipeline_subobject_type::callable_shader

◆ type

shader_group_type reshade::api::shader_group::type

Type of the shader group.


The documentation for this struct was generated from the following file: