Class VkDepthBiasInfoEXT

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkDepthBiasInfoEXT>
org.lwjgl.vulkan.VkDepthBiasInfoEXT
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkDepthBiasInfoEXT extends org.lwjgl.system.Struct<VkDepthBiasInfoEXT> implements org.lwjgl.system.NativeResource
Structure specifying depth bias parameters.
Description

If pNext does not contain a VkDepthBiasRepresentationInfoEXT structure, then this command is equivalent to including a VkDepthBiasRepresentationInfoEXT with depthBiasExact set to FALSE and depthBiasRepresentation set to DEPTH_BIAS_REPRESENTATION_LEAST_REPRESENTABLE_VALUE_FORMAT_EXT.

Valid Usage
  • If the depthBiasClamp feature is not enabled, depthBiasClamp must be 0.0
Valid Usage (Implicit)
See Also

CmdSetDepthBias2EXT

Layout


 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VkDepthBiasInfoEXT>
    • sType

      public int sType()
      a VkStructureType value identifying this structure.
    • pNext

      public long pNext()
      NULL or a pointer to a structure extending this structure.
    • depthBiasConstantFactor

      public float depthBiasConstantFactor()
      a scalar factor controlling the constant depth value added to each fragment.
    • depthBiasClamp

      public float depthBiasClamp()
      the maximum (or minimum) depth bias of a fragment.
    • depthBiasSlopeFactor

      public float depthBiasSlopeFactor()
      a scalar factor applied to a fragment’s slope in depth bias calculations.
    • 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(org.lwjgl.system.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(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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.