namespace Brutal.VulkanApi { /// /// VkRayTracingShaderGroupCreateInfoKHR - Structure specifying shaders in a shader group /// /// /// /// :refpage: VkRayTracingShaderGroupCreateInfoKHR /// /// /// The VkRayTracingShaderGroupCreateInfoKHR structure is defined as: /// /// /// // 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; /// /// [StructLayout(LayoutKind.Explicit, Size = 48)] public unsafe partial struct VkRayTracingShaderGroupCreateInfoKHR() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.RayTracingShaderGroupCreateInfoKHR; /// /// 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 VkRayTracingPipelineCreateInfoKHR::pStages in the group if the shader group has type of VK_RAY_TRACING_SHADER_GROUP_TYPE_GENERAL_KHR, and VK_SHADER_UNUSED_KHR otherwise. /// [FieldOffset(20)] public int GeneralShader; /// /// ClosestHitShader is the optional index of the closest hit shader from VkRayTracingPipelineCreateInfoKHR::pStages in the group if the shader group has type of VK_RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_KHR or VK_RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_KHR, and VK_SHADER_UNUSED_KHR otherwise. /// [FieldOffset(24)] public int ClosestHitShader; /// /// AnyHitShader is the optional index of the any-hit shader from VkRayTracingPipelineCreateInfoKHR::pStages in the group if the shader group has type of VK_RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_KHR or VK_RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_KHR, and VK_SHADER_UNUSED_KHR otherwise. /// [FieldOffset(28)] public int AnyHitShader; /// /// IntersectionShader is the index of the intersection shader from VkRayTracingPipelineCreateInfoKHR::pStages in the group if the shader group has type of VK_RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_KHR, and VK_SHADER_UNUSED_KHR otherwise. /// [FieldOffset(32)] public int IntersectionShader; /// /// ShaderGroupCaptureReplayHandle is `NULL` or a pointer to replay information for this shader group queried from vkGetRayTracingCaptureReplayShaderGroupHandlesKHR, as described in Ray Tracing Capture Replay^. Ignored if VkPhysicalDeviceRayTracingPipelineFeaturesKHR::rayTracingPipelineShaderGroupHandleCaptureReplay is VK_FALSE. /// [FieldOffset(40)] public void* ShaderGroupCaptureReplayHandle; } }