Class VkDepthBiasInfoEXT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkDepthBiasInfoEXT extends Struct<VkDepthBiasInfoEXT> implements NativeResource

 struct VkDepthBiasInfoEXT {
     VkStructureType sType;
     void const * pNext;
     float depthBiasConstantFactor;
     float depthBiasClamp;
     float depthBiasSlopeFactor;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • DEPTHBIASCONSTANTFACTOR

      public static final int DEPTHBIASCONSTANTFACTOR
      The struct member offsets.
    • DEPTHBIASCLAMP

      public static final int DEPTHBIASCLAMP
      The struct member offsets.
    • DEPTHBIASSLOPEFACTOR

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

    • VkDepthBiasInfoEXT

      public VkDepthBiasInfoEXT(ByteBuffer container)
      Creates a VkDepthBiasInfoEXT 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<VkDepthBiasInfoEXT>
    • sType

      public int sType()
      Returns:
      the value of the sType field.
    • pNext

      public long pNext()
      Returns:
      the value of the pNext field.
    • depthBiasConstantFactor

      public float depthBiasConstantFactor()
      Returns:
      the value of the depthBiasConstantFactor field.
    • depthBiasClamp

      public float depthBiasClamp()
      Returns:
      the value of the depthBiasClamp field.
    • depthBiasSlopeFactor

      public float depthBiasSlopeFactor()
      Returns:
      the value of the depthBiasSlopeFactor field.
    • sType

      public VkDepthBiasInfoEXT sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkDepthBiasInfoEXT sType$Default()
      Sets the STRUCTURE_TYPE_DEPTH_BIAS_INFO_EXT value to the sType field.
    • pNext

      public VkDepthBiasInfoEXT pNext(long value)
      Sets the specified value to the pNext field.
    • pNext

      Prepends the specified VkDepthBiasRepresentationInfoEXT value to the pNext chain.
    • depthBiasConstantFactor

      public VkDepthBiasInfoEXT depthBiasConstantFactor(float value)
      Sets the specified value to the depthBiasConstantFactor field.
    • depthBiasClamp

      public VkDepthBiasInfoEXT depthBiasClamp(float value)
      Sets the specified value to the depthBiasClamp field.
    • depthBiasSlopeFactor

      public VkDepthBiasInfoEXT depthBiasSlopeFactor(float value)
      Sets the specified value to the depthBiasSlopeFactor field.
    • set

      public VkDepthBiasInfoEXT set(int sType, long pNext, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor)
      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 VkDepthBiasInfoEXT malloc()
      Returns a new VkDepthBiasInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkDepthBiasInfoEXT.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkDepthBiasInfoEXT.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
    • nsType

      public static int nsType(long struct)
      Unsafe version of sType().
    • npNext

      public static long npNext(long struct)
      Unsafe version of pNext().
    • ndepthBiasConstantFactor

      public static float ndepthBiasConstantFactor(long struct)
      Unsafe version of depthBiasConstantFactor().
    • ndepthBiasClamp

      public static float ndepthBiasClamp(long struct)
      Unsafe version of depthBiasClamp().
    • ndepthBiasSlopeFactor

      public static float ndepthBiasSlopeFactor(long struct)
      Unsafe version of depthBiasSlopeFactor().
    • nsType

      public static void nsType(long struct, int value)
      Unsafe version of sType.
    • npNext

      public static void npNext(long struct, long value)
      Unsafe version of pNext.
    • ndepthBiasConstantFactor

      public static void ndepthBiasConstantFactor(long struct, float value)
      Unsafe version of depthBiasConstantFactor.
    • ndepthBiasClamp

      public static void ndepthBiasClamp(long struct, float value)
      Unsafe version of depthBiasClamp.
    • ndepthBiasSlopeFactor

      public static void ndepthBiasSlopeFactor(long struct, float value)
      Unsafe version of depthBiasSlopeFactor.