Class VkPhysicalDeviceFloatControlsProperties

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkPhysicalDeviceFloatControlsProperties>
org.lwjgl.vulkan.VkPhysicalDeviceFloatControlsProperties
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Direct Known Subclasses:
VkPhysicalDeviceFloatControlsPropertiesKHR

public class VkPhysicalDeviceFloatControlsProperties extends org.lwjgl.system.Struct<VkPhysicalDeviceFloatControlsProperties> implements org.lwjgl.system.NativeResource
Structure describing properties supported by VK_KHR_shader_float_controls.
Description

If the VkPhysicalDeviceFloatControlsProperties structure is included in the pNext chain of the VkPhysicalDeviceProperties2 structure passed to GetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.

Valid Usage (Implicit)

Layout


 struct VkPhysicalDeviceFloatControlsProperties {
     VkStructureType sType();
     void * pNext();
     VkShaderFloatControlsIndependence denormBehaviorIndependence();
     VkShaderFloatControlsIndependence roundingModeIndependence();
     VkBool32 shaderSignedZeroInfNanPreserveFloat16();
     VkBool32 shaderSignedZeroInfNanPreserveFloat32();
     VkBool32 shaderSignedZeroInfNanPreserveFloat64();
     VkBool32 shaderDenormPreserveFloat16();
     VkBool32 shaderDenormPreserveFloat32();
     VkBool32 shaderDenormPreserveFloat64();
     VkBool32 shaderDenormFlushToZeroFloat16();
     VkBool32 shaderDenormFlushToZeroFloat32();
     VkBool32 shaderDenormFlushToZeroFloat64();
     VkBool32 shaderRoundingModeRTEFloat16();
     VkBool32 shaderRoundingModeRTEFloat32();
     VkBool32 shaderRoundingModeRTEFloat64();
     VkBool32 shaderRoundingModeRTZFloat16();
     VkBool32 shaderRoundingModeRTZFloat32();
     VkBool32 shaderRoundingModeRTZFloat64();
 }
  • 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.
    • DENORMBEHAVIORINDEPENDENCE

      public static final int DENORMBEHAVIORINDEPENDENCE
      The struct member offsets.
    • ROUNDINGMODEINDEPENDENCE

      public static final int ROUNDINGMODEINDEPENDENCE
      The struct member offsets.
    • SHADERSIGNEDZEROINFNANPRESERVEFLOAT16

      public static final int SHADERSIGNEDZEROINFNANPRESERVEFLOAT16
      The struct member offsets.
    • SHADERSIGNEDZEROINFNANPRESERVEFLOAT32

      public static final int SHADERSIGNEDZEROINFNANPRESERVEFLOAT32
      The struct member offsets.
    • SHADERSIGNEDZEROINFNANPRESERVEFLOAT64

      public static final int SHADERSIGNEDZEROINFNANPRESERVEFLOAT64
      The struct member offsets.
    • SHADERDENORMPRESERVEFLOAT16

      public static final int SHADERDENORMPRESERVEFLOAT16
      The struct member offsets.
    • SHADERDENORMPRESERVEFLOAT32

      public static final int SHADERDENORMPRESERVEFLOAT32
      The struct member offsets.
    • SHADERDENORMPRESERVEFLOAT64

      public static final int SHADERDENORMPRESERVEFLOAT64
      The struct member offsets.
    • SHADERDENORMFLUSHTOZEROFLOAT16

      public static final int SHADERDENORMFLUSHTOZEROFLOAT16
      The struct member offsets.
    • SHADERDENORMFLUSHTOZEROFLOAT32

      public static final int SHADERDENORMFLUSHTOZEROFLOAT32
      The struct member offsets.
    • SHADERDENORMFLUSHTOZEROFLOAT64

      public static final int SHADERDENORMFLUSHTOZEROFLOAT64
      The struct member offsets.
    • SHADERROUNDINGMODERTEFLOAT16

      public static final int SHADERROUNDINGMODERTEFLOAT16
      The struct member offsets.
    • SHADERROUNDINGMODERTEFLOAT32

      public static final int SHADERROUNDINGMODERTEFLOAT32
      The struct member offsets.
    • SHADERROUNDINGMODERTEFLOAT64

      public static final int SHADERROUNDINGMODERTEFLOAT64
      The struct member offsets.
    • SHADERROUNDINGMODERTZFLOAT16

      public static final int SHADERROUNDINGMODERTZFLOAT16
      The struct member offsets.
    • SHADERROUNDINGMODERTZFLOAT32

      public static final int SHADERROUNDINGMODERTZFLOAT32
      The struct member offsets.
    • SHADERROUNDINGMODERTZFLOAT64

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

    • VkPhysicalDeviceFloatControlsProperties

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

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

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

      public int denormBehaviorIndependence()
      a VkShaderFloatControlsIndependence value indicating whether, and how, denorm behavior can be set independently for different bit widths.
    • roundingModeIndependence

      public int roundingModeIndependence()
      a VkShaderFloatControlsIndependence value indicating whether, and how, rounding modes can be set independently for different bit widths.
    • shaderSignedZeroInfNanPreserveFloat16

      public boolean shaderSignedZeroInfNanPreserveFloat16()
      a boolean value indicating whether sign of a zero, Nans and ±∞ can be preserved in 16-bit floating-point computations. It also indicates whether the SignedZeroInfNanPreserve execution mode can be used for 16-bit floating-point types.
    • shaderSignedZeroInfNanPreserveFloat32

      public boolean shaderSignedZeroInfNanPreserveFloat32()
      a boolean value indicating whether sign of a zero, Nans and ±∞ can be preserved in 32-bit floating-point computations. It also indicates whether the SignedZeroInfNanPreserve execution mode can be used for 32-bit floating-point types.
    • shaderSignedZeroInfNanPreserveFloat64

      public boolean shaderSignedZeroInfNanPreserveFloat64()
      a boolean value indicating whether sign of a zero, Nans and ±∞ can be preserved in 64-bit floating-point computations. It also indicates whether the SignedZeroInfNanPreserve execution mode can be used for 64-bit floating-point types.
    • shaderDenormPreserveFloat16

      public boolean shaderDenormPreserveFloat16()
      a boolean value indicating whether denormals can be preserved in 16-bit floating-point computations. It also indicates whether the DenormPreserve execution mode can be used for 16-bit floating-point types.
    • shaderDenormPreserveFloat32

      public boolean shaderDenormPreserveFloat32()
      a boolean value indicating whether denormals can be preserved in 32-bit floating-point computations. It also indicates whether the DenormPreserve execution mode can be used for 32-bit floating-point types.
    • shaderDenormPreserveFloat64

      public boolean shaderDenormPreserveFloat64()
      a boolean value indicating whether denormals can be preserved in 64-bit floating-point computations. It also indicates whether the DenormPreserve execution mode can be used for 64-bit floating-point types.
    • shaderDenormFlushToZeroFloat16

      public boolean shaderDenormFlushToZeroFloat16()
      a boolean value indicating whether denormals can be flushed to zero in 16-bit floating-point computations. It also indicates whether the DenormFlushToZero execution mode can be used for 16-bit floating-point types.
    • shaderDenormFlushToZeroFloat32

      public boolean shaderDenormFlushToZeroFloat32()
      a boolean value indicating whether denormals can be flushed to zero in 32-bit floating-point computations. It also indicates whether the DenormFlushToZero execution mode can be used for 32-bit floating-point types.
    • shaderDenormFlushToZeroFloat64

      public boolean shaderDenormFlushToZeroFloat64()
      a boolean value indicating whether denormals can be flushed to zero in 64-bit floating-point computations. It also indicates whether the DenormFlushToZero execution mode can be used for 64-bit floating-point types.
    • shaderRoundingModeRTEFloat16

      public boolean shaderRoundingModeRTEFloat16()
      a boolean value indicating whether an implementation supports the round-to-nearest-even rounding mode for 16-bit floating-point arithmetic and conversion instructions. It also indicates whether the RoundingModeRTE execution mode can be used for 16-bit floating-point types.
    • shaderRoundingModeRTEFloat32

      public boolean shaderRoundingModeRTEFloat32()
      a boolean value indicating whether an implementation supports the round-to-nearest-even rounding mode for 32-bit floating-point arithmetic and conversion instructions. It also indicates whether the RoundingModeRTE execution mode can be used for 32-bit floating-point types.
    • shaderRoundingModeRTEFloat64

      public boolean shaderRoundingModeRTEFloat64()
      a boolean value indicating whether an implementation supports the round-to-nearest-even rounding mode for 64-bit floating-point arithmetic and conversion instructions. It also indicates whether the RoundingModeRTE execution mode can be used for 64-bit floating-point types.
    • shaderRoundingModeRTZFloat16

      public boolean shaderRoundingModeRTZFloat16()
      a boolean value indicating whether an implementation supports the round-towards-zero rounding mode for 16-bit floating-point arithmetic and conversion instructions. It also indicates whether the RoundingModeRTZ execution mode can be used for 16-bit floating-point types.
    • shaderRoundingModeRTZFloat32

      public boolean shaderRoundingModeRTZFloat32()
      a boolean value indicating whether an implementation supports the round-towards-zero rounding mode for 32-bit floating-point arithmetic and conversion instructions. It also indicates whether the RoundingModeRTZ execution mode can be used for 32-bit floating-point types.
    • shaderRoundingModeRTZFloat64

      public boolean shaderRoundingModeRTZFloat64()
      a boolean value indicating whether an implementation supports the round-towards-zero rounding mode for 64-bit floating-point arithmetic and conversion instructions. It also indicates whether the RoundingModeRTZ execution mode can be used for 64-bit floating-point types.
    • sType

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

    • pNext

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

      public VkPhysicalDeviceFloatControlsProperties set(int sType, long pNext)
      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

      Returns a new VkPhysicalDeviceFloatControlsProperties instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      Returns a new VkPhysicalDeviceFloatControlsProperties instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      Returns a new VkPhysicalDeviceFloatControlsProperties instance allocated with BufferUtils.
    • create

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

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

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

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

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

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

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

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

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

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

      public static VkPhysicalDeviceFloatControlsProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkPhysicalDeviceFloatControlsProperties.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().
    • ndenormBehaviorIndependence

      public static int ndenormBehaviorIndependence(long struct)
      Unsafe version of denormBehaviorIndependence().
    • nroundingModeIndependence

      public static int nroundingModeIndependence(long struct)
      Unsafe version of roundingModeIndependence().
    • nshaderSignedZeroInfNanPreserveFloat16

      public static int nshaderSignedZeroInfNanPreserveFloat16(long struct)
    • nshaderSignedZeroInfNanPreserveFloat32

      public static int nshaderSignedZeroInfNanPreserveFloat32(long struct)
    • nshaderSignedZeroInfNanPreserveFloat64

      public static int nshaderSignedZeroInfNanPreserveFloat64(long struct)
    • nshaderDenormPreserveFloat16

      public static int nshaderDenormPreserveFloat16(long struct)
    • nshaderDenormPreserveFloat32

      public static int nshaderDenormPreserveFloat32(long struct)
    • nshaderDenormPreserveFloat64

      public static int nshaderDenormPreserveFloat64(long struct)
    • nshaderDenormFlushToZeroFloat16

      public static int nshaderDenormFlushToZeroFloat16(long struct)
    • nshaderDenormFlushToZeroFloat32

      public static int nshaderDenormFlushToZeroFloat32(long struct)
    • nshaderDenormFlushToZeroFloat64

      public static int nshaderDenormFlushToZeroFloat64(long struct)
    • nshaderRoundingModeRTEFloat16

      public static int nshaderRoundingModeRTEFloat16(long struct)
    • nshaderRoundingModeRTEFloat32

      public static int nshaderRoundingModeRTEFloat32(long struct)
    • nshaderRoundingModeRTEFloat64

      public static int nshaderRoundingModeRTEFloat64(long struct)
    • nshaderRoundingModeRTZFloat16

      public static int nshaderRoundingModeRTZFloat16(long struct)
    • nshaderRoundingModeRTZFloat32

      public static int nshaderRoundingModeRTZFloat32(long struct)
    • nshaderRoundingModeRTZFloat64

      public static int nshaderRoundingModeRTZFloat64(long struct)
    • 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.