Class VkBindAccelerationStructureMemoryInfoNV

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class VkBindAccelerationStructureMemoryInfoNV
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying acceleration structure memory binding.
    Valid Usage
    Valid Usage (Implicit)
    • sType must be STRUCTURE_TYPE_BIND_ACCELERATION_STRUCTURE_MEMORY_INFO_NV
    • pNext must be NULL
    • accelerationStructure must be a valid VkAccelerationStructureNV handle
    • memory must be a valid VkDeviceMemory handle
    • If deviceIndexCount is not 0, pDeviceIndices must be a valid pointer to an array of deviceIndexCount uint32_t values
    • Both of accelerationStructure, and memory must have been created, allocated, or retrieved from the same VkDevice
    See Also

    BindAccelerationStructureMemoryNV

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • accelerationStructure – the acceleration structure to be attached to memory.
    • memory – a VkDeviceMemory object describing the device memory to attach.
    • memoryOffset – the start offset of the region of memory that is to be bound to the acceleration structure. The number of bytes returned in the VkMemoryRequirements::size member in memory, starting from memoryOffset bytes, will be bound to the specified acceleration structure.
    • deviceIndexCount – the number of elements in pDeviceIndices.
    • pDeviceIndices – a pointer to an array of device indices.

    Layout

    
     struct VkBindAccelerationStructureMemoryInfoNV {
         VkStructureType sType;
         void const * pNext;
         VkAccelerationStructureNV accelerationStructure;
         VkDeviceMemory memory;
         VkDeviceSize memoryOffset;
         uint32_t deviceIndexCount;
         uint32_t const * pDeviceIndices;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, ACCELERATIONSTRUCTURE, MEMORY, MEMORYOFFSET, DEVICEINDEXCOUNT, PDEVICEINDICES

        The struct member offsets.
    • Constructor Detail

      • VkBindAccelerationStructureMemoryInfoNV

        public VkBindAccelerationStructureMemoryInfoNV​(java.nio.ByteBuffer container)
        Creates a VkBindAccelerationStructureMemoryInfoNV instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.