brutal/Brutal.Vulkan/Generated/Structs/VkRayTracingShaderGroupCreateInfoKHR.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

78 lines
4.5 KiB
C#

namespace Brutal.VulkanApi
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkRayTracingShaderGroupCreateInfoKHR.html">VkRayTracingShaderGroupCreateInfoKHR</see> - Structure specifying shaders in a shader group
/// </summary>
/// <remarks>
/// <para>
/// :refpage: VkRayTracingShaderGroupCreateInfoKHR
/// </para>
/// <para>
/// The <c>VkRayTracingShaderGroupCreateInfoKHR</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_KHR_ray_tracing_pipeline
/// typedef struct VkRayTracingShaderGroupCreateInfoKHR {
/// VkStructureType sType;
/// const void* pNext;
/// VkRayTracingShaderGroupTypeKHR type;
/// uint32_t generalShader;
/// uint32_t closestHitShader;
/// uint32_t anyHitShader;
/// uint32_t intersectionShader;
/// const void* pShaderGroupCaptureReplayHandle;
/// } VkRayTracingShaderGroupCreateInfoKHR;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 48)]
public unsafe partial struct VkRayTracingShaderGroupCreateInfoKHR()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.RayTracingShaderGroupCreateInfoKHR;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>Type</c> is the type of hit group specified in this structure.
/// </summary>
[FieldOffset(16)]
public VkRayTracingShaderGroupTypeKHR Type;
/// <summary>
/// <c>GeneralShader</c> is the index of the ray generation, miss, or callable shader from <c>VkRayTracingPipelineCreateInfoKHR::pStages</c> in the group if the shader group has <c>type</c> of <c>VK_RAY_TRACING_SHADER_GROUP_TYPE_GENERAL_KHR</c>, and <c>VK_SHADER_UNUSED_KHR</c> otherwise.
/// </summary>
[FieldOffset(20)]
public int GeneralShader;
/// <summary>
/// <c>ClosestHitShader</c> is the optional index of the closest hit shader from <c>VkRayTracingPipelineCreateInfoKHR::pStages</c> in the group if the shader group has <c>type</c> of <c>VK_RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_KHR</c> or <c>VK_RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_KHR</c>, and <c>VK_SHADER_UNUSED_KHR</c> otherwise.
/// </summary>
[FieldOffset(24)]
public int ClosestHitShader;
/// <summary>
/// <c>AnyHitShader</c> is the optional index of the any-hit shader from <c>VkRayTracingPipelineCreateInfoKHR::pStages</c> in the group if the shader group has <c>type</c> of <c>VK_RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_KHR</c> or <c>VK_RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_KHR</c>, and <c>VK_SHADER_UNUSED_KHR</c> otherwise.
/// </summary>
[FieldOffset(28)]
public int AnyHitShader;
/// <summary>
/// <c>IntersectionShader</c> is the index of the intersection shader from <c>VkRayTracingPipelineCreateInfoKHR::pStages</c> in the group if the shader group has <c>type</c> of <c>VK_RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_KHR</c>, and <c>VK_SHADER_UNUSED_KHR</c> otherwise.
/// </summary>
[FieldOffset(32)]
public int IntersectionShader;
/// <summary>
/// <c>ShaderGroupCaptureReplayHandle</c> is `NULL` or a pointer to replay information for this shader group queried from <c>vkGetRayTracingCaptureReplayShaderGroupHandlesKHR</c>, as described in <see href="https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#ray-tracing-capture-replay">Ray Tracing Capture Replay^</see>. Ignored if <c>VkPhysicalDeviceRayTracingPipelineFeaturesKHR::rayTracingPipelineShaderGroupHandleCaptureReplay</c> is <c>VK_FALSE</c>.
/// </summary>
[FieldOffset(40)]
public void* ShaderGroupCaptureReplayHandle;
}
}