Class VkStencilOpState

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

    public class VkStencilOpState
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying stencil operation state.
    Valid Usage (Implicit)
    • failOp must be a valid VkStencilOp value
    • passOp must be a valid VkStencilOp value
    • depthFailOp must be a valid VkStencilOp value
    • compareOp must be a valid VkCompareOp value
    See Also

    VkPipelineDepthStencilStateCreateInfo

    Layout

    
     struct VkStencilOpState {
         VkStencilOp failOp();
         VkStencilOp passOp();
         VkStencilOp depthFailOp();
         VkCompareOp compareOp();
         uint32_t compareMask();
         uint32_t writeMask();
         uint32_t reference();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • FAILOP, PASSOP, DEPTHFAILOP, COMPAREOP, COMPAREMASK, WRITEMASK, REFERENCE

        The struct member offsets.
    • Constructor Detail

      • VkStencilOpState

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

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • failOp

        public int failOp()
        a VkStencilOp value specifying the action performed on samples that fail the stencil test.
      • passOp

        public int passOp()
        a VkStencilOp value specifying the action performed on samples that pass both the depth and stencil tests.
      • depthFailOp

        public int depthFailOp()
        a VkStencilOp value specifying the action performed on samples that pass the stencil test and fail the depth test.
      • compareOp

        public int compareOp()
        a VkCompareOp value specifying the comparison operator used in the stencil test.
      • compareMask

        public int compareMask()
        selects the bits of the unsigned integer stencil values participating in the stencil test.
      • writeMask

        public int writeMask()
        selects the bits of the unsigned integer stencil values updated by the stencil test in the stencil framebuffer attachment.
      • reference

        public int reference()
        an integer reference value that is used in the unsigned stencil comparison.
      • set

        public VkStencilOpState set​(int failOp,
                                    int passOp,
                                    int depthFailOp,
                                    int compareOp,
                                    int compareMask,
                                    int writeMask,
                                    int reference)
        Initializes this struct with the specified values.
      • set

        public VkStencilOpState set​(VkStencilOpState src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

        public static VkStencilOpState malloc()
        Returns a new VkStencilOpState instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static VkStencilOpState calloc()
        Returns a new VkStencilOpState instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static VkStencilOpState create()
        Returns a new VkStencilOpState instance allocated with BufferUtils.
      • create

        public static VkStencilOpState create​(long address)
        Returns a new VkStencilOpState instance for the specified memory address.
      • createSafe

        @Nullable
        public static VkStencilOpState createSafe​(long address)
        Like create, but returns null if address is NULL.
      • createSafe

        @Nullable
        public static VkStencilOpState.Buffer createSafe​(long address,
                                                         int capacity)
        Like create, but returns null if address is NULL.
      • mallocStack

        @Deprecated
        public static VkStencilOpState mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static VkStencilOpState callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

        public static VkStencilOpState malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkStencilOpState instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static VkStencilOpState calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkStencilOpState instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • malloc

        public static VkStencilOpState.Buffer malloc​(int capacity,
                                                     org.lwjgl.system.MemoryStack stack)
        Returns a new VkStencilOpState.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static VkStencilOpState.Buffer calloc​(int capacity,
                                                     org.lwjgl.system.MemoryStack stack)
        Returns a new VkStencilOpState.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nfailOp

        public static int nfailOp​(long struct)
        Unsafe version of failOp().
      • npassOp

        public static int npassOp​(long struct)
        Unsafe version of passOp().
      • ndepthFailOp

        public static int ndepthFailOp​(long struct)
        Unsafe version of depthFailOp().
      • ncompareOp

        public static int ncompareOp​(long struct)
        Unsafe version of compareOp().
      • ncompareMask

        public static int ncompareMask​(long struct)
        Unsafe version of compareMask().
      • nwriteMask

        public static int nwriteMask​(long struct)
        Unsafe version of writeMask().
      • nreference

        public static int nreference​(long struct)
        Unsafe version of reference().
      • nfailOp

        public static void nfailOp​(long struct,
                                   int value)
        Unsafe version of failOp.
      • npassOp

        public static void npassOp​(long struct,
                                   int value)
        Unsafe version of passOp.
      • ndepthFailOp

        public static void ndepthFailOp​(long struct,
                                        int value)
        Unsafe version of depthFailOp.
      • ncompareOp

        public static void ncompareOp​(long struct,
                                      int value)
        Unsafe version of compareOp.
      • ncompareMask

        public static void ncompareMask​(long struct,
                                        int value)
        Unsafe version of compareMask.
      • nwriteMask

        public static void nwriteMask​(long struct,
                                      int value)
        Unsafe version of writeMask.
      • nreference

        public static void nreference​(long struct,
                                      int value)
        Unsafe version of reference.