pub struct RayTraceShaderGroup {
    pub any_hit_shader: Option<u32>,
    pub closest_hit_shader: Option<u32>,
    pub general_shader: Option<u32>,
    pub intersection_shader: Option<u32>,
    pub ty: RayTraceShaderGroupType,
}
Expand description

Describes the set of the shader stages to be included in each shader group in the ray trace pipeline.

See VkRayTracingShaderGroupCreateInfoKHR.

Fields§

§any_hit_shader: Option<u32>

The optional index of the any-hit shader in the group if the shader group has type of RayTraceShaderGroupType::TrianglesHitGroup or RayTraceShaderGroupType::ProceduralHitGroup.

§closest_hit_shader: Option<u32>

The optional index of the closest hit shader in the group if the shader group has type of RayTraceShaderGroupType::TrianglesHitGroup or RayTraceShaderGroupType::ProceduralHitGroup.

§general_shader: Option<u32>

The index of the ray generation, miss, or callable shader in the group if the shader group has type of RayTraceShaderGroupType::General.

§intersection_shader: Option<u32>

The index of the intersection shader in the group if the shader group has type of RayTraceShaderGroupType::ProceduralHitGroup.

§ty: RayTraceShaderGroupType

The type of hit group specified in this structure.

Implementations§

Creates a new general-type shader group with the given general shader.

Creates a new procedural-type shader group with the given intersection shader, and optional closest-hit and any-hit shaders.

Creates a new triangles-type shader group with the given closest-hit shader and optional any-hit shader.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.