Class VkBufferViewCreateInfo

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

    public class VkBufferViewCreateInfo
    extends Struct
    implements NativeResource
    Structure specifying parameters of a newly created buffer view.
    Valid Usage
    Valid Usage (Implicit)
    See Also

    CreateBufferView

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • flags – reserved for future use.
    • buffer – a VkBuffer on which the view will be created.
    • format – a VkFormat describing the format of the data elements in the buffer.
    • offset – an offset in bytes from the base address of the buffer. Accesses to the buffer view from shaders use addressing that is relative to this starting offset.
    • range – a size in bytes of the buffer view. If range is equal to WHOLE_SIZE, the range from offset to the end of the buffer is used. If WHOLE_SIZE is used and the remaining size of the buffer is not a multiple of the element size of format, then the nearest smaller multiple is used.

    Layout

    
     struct VkBufferViewCreateInfo {
         VkStructureType sType;
         void const * pNext;
         VkBufferViewCreateFlags flags;
         VkBuffer buffer;
         VkFormat format;
         VkDeviceSize offset;
         VkDeviceSize range;
     }