namespace Brutal.VulkanApi { /// /// VkClusterAccelerationStructureCommandsInfoNV - Structure describing parameters for building for moving an acceleration structure /// /// /// /// :refpage: VkClusterAccelerationStructureCommandsInfoNV /// /// /// The VkClusterAccelerationStructureCommandsInfoNV structure is defined /// as: /// /// /// // Provided by VK_NV_cluster_acceleration_structure /// typedef struct VkClusterAccelerationStructureCommandsInfoNV { /// VkStructureType sType; /// void* pNext; /// VkClusterAccelerationStructureInputInfoNV input; /// VkDeviceAddress dstImplicitData; /// VkDeviceAddress scratchData; /// VkStridedDeviceAddressRegionKHR dstAddressesArray; /// VkStridedDeviceAddressRegionKHR dstSizesArray; /// VkStridedDeviceAddressRegionKHR srcInfosArray; /// VkDeviceAddress srcInfosCount; /// VkClusterAccelerationStructureAddressResolutionFlagsNV addressResolutionFlags; /// } VkClusterAccelerationStructureCommandsInfoNV; /// /// [StructLayout(LayoutKind.Explicit, Size = 160)] public unsafe partial struct VkClusterAccelerationStructureCommandsInfoNV() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ClusterAccelerationStructureCommandsInfoNV; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Input is VkClusterAccelerationStructureInputInfoNV structure describing the build or move parameters for the cluster acceleration structure. /// [FieldOffset(16)] public VkClusterAccelerationStructureInputInfoNV Input; /// /// DstImplicitData is the device address for memory where the implicit build of cluster acceleration structure will be saved. If VkClusterAccelerationStructureInputInfoNV::opMode is VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_EXPLICIT_DESTINATIONS_NV or VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_COMPUTE_SIZES_NV, this value is ignored. /// [FieldOffset(56)] public VkDeviceAddress DstImplicitData; /// /// ScratchData is the device address of scratch memory that will be used during cluster acceleration structure move or build. /// [FieldOffset(64)] public VkDeviceAddress ScratchData; /// /// DstAddressesArray is a VkStridedDeviceAddressRegionKHR that specifies addresses and stride for moved or built cluster acceleration structures, depending on the value of VkClusterAccelerationStructureInputInfoNV::opMode. If VkClusterAccelerationStructureInputInfoNV::opMode is VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_IMPLICIT_DESTINATIONS_NV and VkStridedDeviceAddressRegionKHR::deviceAddress is not `0`, then the implementation writes the cluster addresses to the specified region. If VkClusterAccelerationStructureInputInfoNV::opMode is VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_EXPLICIT_DESTINATIONS_NV, the implementation reads the cluster addresses from the specified region. If VkClusterAccelerationStructureInputInfoNV::opMode is VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_COMPUTE_SIZES_NV, this member is ignored. /// [FieldOffset(72)] public VkStridedDeviceAddressRegionKHR DstAddressesArray; /// /// DstSizesArray is a VkStridedDeviceAddressRegionKHR containing sizes of moved or built cluster acceleration structures. If VkClusterAccelerationStructureInputInfoNV::opMode is VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_IMPLICIT_DESTINATIONS_NV or VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_COMPUTE_SIZES_NV, then the sizes are saved. If VkClusterAccelerationStructureInputInfoNV::opMode is VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_EXPLICIT_DESTINATIONS_NV, then the sizes are read from. /// [FieldOffset(96)] public VkStridedDeviceAddressRegionKHR DstSizesArray; /// /// SrcInfosArray is a VkStridedDeviceAddressRegionKHR where input data for the build or move operation is read from. If the stride is `0`, the structures are assumed to be packed tightly. Its format is dependent on VkClusterAccelerationStructureInputInfoNV::opType as per the table below. [options="header"] | /// [FieldOffset(120)] public VkStridedDeviceAddressRegionKHR SrcInfosArray; /// /// SrcInfosCount /// [FieldOffset(144)] public VkDeviceAddress SrcInfosCount; /// /// AddressResolutionFlags /// [FieldOffset(152)] public VkClusterAccelerationStructureAddressResolutionFlagsNV AddressResolutionFlags; } }