namespace Brutal.VulkanApi { /// /// VkRayTracingShaderGroupCreateInfoNV - Structure specifying shaders in a shader group /// /// /// /// :refpage: VkRayTracingShaderGroupCreateInfoNV /// /// /// The VkRayTracingShaderGroupCreateInfoNV structure is defined as: /// /// /// // Provided by VK_NV_ray_tracing /// typedef struct VkRayTracingShaderGroupCreateInfoNV { /// VkStructureType sType; /// const void* pNext; /// VkRayTracingShaderGroupTypeKHR type; /// uint32_t generalShader; /// uint32_t closestHitShader; /// uint32_t anyHitShader; /// uint32_t intersectionShader; /// } VkRayTracingShaderGroupCreateInfoNV; /// /// [StructLayout(LayoutKind.Explicit, Size = 40)] public unsafe partial struct VkRayTracingShaderGroupCreateInfoNV() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.RayTracingShaderGroupCreateInfoNV; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Type is the type of hit group specified in this structure. /// [FieldOffset(16)] public VkRayTracingShaderGroupTypeKHR Type; /// /// GeneralShader is the index of the ray generation, miss, or callable shader from VkRayTracingPipelineCreateInfoNV::pStages in the group if the shader group has type of VK_RAY_TRACING_SHADER_GROUP_TYPE_GENERAL_NV, and VK_SHADER_UNUSED_NV otherwise. /// [FieldOffset(20)] public int GeneralShader; /// /// ClosestHitShader is the optional index of the closest hit shader from VkRayTracingPipelineCreateInfoNV::pStages in the group if the shader group has type of VK_RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_NV or VK_RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_NV, and VK_SHADER_UNUSED_NV otherwise. /// [FieldOffset(24)] public int ClosestHitShader; /// /// AnyHitShader is the optional index of the any-hit shader from VkRayTracingPipelineCreateInfoNV::pStages in the group if the shader group has type of VK_RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_NV or VK_RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_NV, and VK_SHADER_UNUSED_NV otherwise. /// [FieldOffset(28)] public int AnyHitShader; /// /// IntersectionShader is the index of the intersection shader from VkRayTracingPipelineCreateInfoNV::pStages in the group if the shader group has type of VK_RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_NV, and VK_SHADER_UNUSED_NV otherwise. /// [FieldOffset(32)] public int IntersectionShader; } }