Class VkConditionalRenderingBeginInfoEXT

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

    public class VkConditionalRenderingBeginInfoEXT
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying conditional rendering begin info.
    Description

    If the 32-bit value at offset in buffer memory is zero, then the rendering commands are discarded, otherwise they are executed as normal. If the value of the predicate in buffer memory changes while conditional rendering is active, the rendering commands may be discarded in an implementation-dependent way. Some implementations may latch the value of the predicate upon beginning conditional rendering while others may read it before every rendering command.

    Valid Usage
    • If buffer is non-sparse then it must be bound completely and contiguously to a single VkDeviceMemory object
    • buffer must have been created with the BUFFER_USAGE_CONDITIONAL_RENDERING_BIT_EXT bit set
    • offset must be less than the size of buffer by at least 32 bits.
    • offset must be a multiple of 4
    Valid Usage (Implicit)
    See Also

    CmdBeginConditionalRenderingEXT

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • buffer – a buffer containing the predicate for conditional rendering.
    • offset – the byte offset into buffer where the predicate is located.
    • flags – a bitmask of VkConditionalRenderingFlagsEXT specifying the behavior of conditional rendering.

    Layout

    
     struct VkConditionalRenderingBeginInfoEXT {
         VkStructureType sType;
         void const * pNext;
         VkBuffer buffer;
         VkDeviceSize offset;
         VkConditionalRenderingFlagsEXT flags;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, BUFFER, OFFSET, FLAGS

        The struct member offsets.
    • Constructor Detail

      • VkConditionalRenderingBeginInfoEXT

        public VkConditionalRenderingBeginInfoEXT​(java.nio.ByteBuffer container)
        Creates a VkConditionalRenderingBeginInfoEXT 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.