Class VkColorBlendEquationEXT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkColorBlendEquationEXT extends Struct<VkColorBlendEquationEXT> implements NativeResource

 struct VkColorBlendEquationEXT {
     VkBlendFactor srcColorBlendFactor;
     VkBlendFactor dstColorBlendFactor;
     VkBlendOp colorBlendOp;
     VkBlendFactor srcAlphaBlendFactor;
     VkBlendFactor dstAlphaBlendFactor;
     VkBlendOp alphaBlendOp;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • SRCCOLORBLENDFACTOR

      public static final int SRCCOLORBLENDFACTOR
      The struct member offsets.
    • DSTCOLORBLENDFACTOR

      public static final int DSTCOLORBLENDFACTOR
      The struct member offsets.
    • COLORBLENDOP

      public static final int COLORBLENDOP
      The struct member offsets.
    • SRCALPHABLENDFACTOR

      public static final int SRCALPHABLENDFACTOR
      The struct member offsets.
    • DSTALPHABLENDFACTOR

      public static final int DSTALPHABLENDFACTOR
      The struct member offsets.
    • ALPHABLENDOP

      public static final int ALPHABLENDOP
      The struct member offsets.
  • Constructor Details

    • VkColorBlendEquationEXT

      public VkColorBlendEquationEXT(ByteBuffer container)
      Creates a VkColorBlendEquationEXT 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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkColorBlendEquationEXT>
    • srcColorBlendFactor

      public int srcColorBlendFactor()
      Returns:
      the value of the srcColorBlendFactor field.
    • dstColorBlendFactor

      public int dstColorBlendFactor()
      Returns:
      the value of the dstColorBlendFactor field.
    • colorBlendOp

      public int colorBlendOp()
      Returns:
      the value of the colorBlendOp field.
    • srcAlphaBlendFactor

      public int srcAlphaBlendFactor()
      Returns:
      the value of the srcAlphaBlendFactor field.
    • dstAlphaBlendFactor

      public int dstAlphaBlendFactor()
      Returns:
      the value of the dstAlphaBlendFactor field.
    • alphaBlendOp

      public int alphaBlendOp()
      Returns:
      the value of the alphaBlendOp field.
    • srcColorBlendFactor

      public VkColorBlendEquationEXT srcColorBlendFactor(int value)
      Sets the specified value to the srcColorBlendFactor field.
    • dstColorBlendFactor

      public VkColorBlendEquationEXT dstColorBlendFactor(int value)
      Sets the specified value to the dstColorBlendFactor field.
    • colorBlendOp

      public VkColorBlendEquationEXT colorBlendOp(int value)
      Sets the specified value to the colorBlendOp field.
    • srcAlphaBlendFactor

      public VkColorBlendEquationEXT srcAlphaBlendFactor(int value)
      Sets the specified value to the srcAlphaBlendFactor field.
    • dstAlphaBlendFactor

      public VkColorBlendEquationEXT dstAlphaBlendFactor(int value)
      Sets the specified value to the dstAlphaBlendFactor field.
    • alphaBlendOp

      public VkColorBlendEquationEXT alphaBlendOp(int value)
      Sets the specified value to the alphaBlendOp field.
    • set

      public VkColorBlendEquationEXT set(int srcColorBlendFactor, int dstColorBlendFactor, int colorBlendOp, int srcAlphaBlendFactor, int dstAlphaBlendFactor, int alphaBlendOp)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

      public static VkColorBlendEquationEXT.Buffer malloc(int capacity)
      Returns a new VkColorBlendEquationEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkColorBlendEquationEXT.Buffer calloc(int capacity)
      Returns a new VkColorBlendEquationEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkColorBlendEquationEXT.Buffer create(int capacity)
      Returns a new VkColorBlendEquationEXT.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkColorBlendEquationEXT.Buffer create(long address, int capacity)
      Create a VkColorBlendEquationEXT.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

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

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

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

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

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

      public static int nsrcColorBlendFactor(long struct)
      Unsafe version of srcColorBlendFactor().
    • ndstColorBlendFactor

      public static int ndstColorBlendFactor(long struct)
      Unsafe version of dstColorBlendFactor().
    • ncolorBlendOp

      public static int ncolorBlendOp(long struct)
      Unsafe version of colorBlendOp().
    • nsrcAlphaBlendFactor

      public static int nsrcAlphaBlendFactor(long struct)
      Unsafe version of srcAlphaBlendFactor().
    • ndstAlphaBlendFactor

      public static int ndstAlphaBlendFactor(long struct)
      Unsafe version of dstAlphaBlendFactor().
    • nalphaBlendOp

      public static int nalphaBlendOp(long struct)
      Unsafe version of alphaBlendOp().
    • nsrcColorBlendFactor

      public static void nsrcColorBlendFactor(long struct, int value)
      Unsafe version of srcColorBlendFactor.
    • ndstColorBlendFactor

      public static void ndstColorBlendFactor(long struct, int value)
      Unsafe version of dstColorBlendFactor.
    • ncolorBlendOp

      public static void ncolorBlendOp(long struct, int value)
      Unsafe version of colorBlendOp.
    • nsrcAlphaBlendFactor

      public static void nsrcAlphaBlendFactor(long struct, int value)
      Unsafe version of srcAlphaBlendFactor.
    • ndstAlphaBlendFactor

      public static void ndstAlphaBlendFactor(long struct, int value)
      Unsafe version of dstAlphaBlendFactor.
    • nalphaBlendOp

      public static void nalphaBlendOp(long struct, int value)
      Unsafe version of alphaBlendOp.