Class SpvcMslShaderInterfaceVar2

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<SpvcMslShaderInterfaceVar2>
org.lwjgl.util.spvc.SpvcMslShaderInterfaceVar2
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class SpvcMslShaderInterfaceVar2 extends org.lwjgl.system.Struct<SpvcMslShaderInterfaceVar2> implements org.lwjgl.system.NativeResource

Layout


 struct spvc_msl_shader_interface_var_2 {
     unsigned location;
     spvc_msl_shader_variable_format format;
     SpvBuiltIn builtin;
     unsigned vecsize;
     spvc_msl_shader_variable_rate rate;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int LOCATION
      The struct member offsets.
    • FORMAT

      public static final int FORMAT
      The struct member offsets.
    • BUILTIN

      public static final int BUILTIN
      The struct member offsets.
    • VECSIZE

      public static final int VECSIZE
      The struct member offsets.
    • RATE

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

    • SpvcMslShaderInterfaceVar2

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

      public int location()
      Returns:
      the value of the location field.
    • format

      public int format()
      Returns:
      the value of the format field.
    • builtin

      public int builtin()
      Returns:
      the value of the builtin field.
    • vecsize

      public int vecsize()
      Returns:
      the value of the vecsize field.
    • rate

      public int rate()
      Returns:
      the value of the rate field.
    • location

      public SpvcMslShaderInterfaceVar2 location(int value)
      Sets the specified value to the location field.
    • format

      public SpvcMslShaderInterfaceVar2 format(int value)
      Sets the specified value to the format field.
    • builtin

      public SpvcMslShaderInterfaceVar2 builtin(int value)
      Sets the specified value to the builtin field.
    • vecsize

      public SpvcMslShaderInterfaceVar2 vecsize(int value)
      Sets the specified value to the vecsize field.
    • rate

      public SpvcMslShaderInterfaceVar2 rate(int value)
      Sets the specified value to the rate field.
    • set

      public SpvcMslShaderInterfaceVar2 set(int location, int format, int builtin, int vecsize, int rate)
      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 SpvcMslShaderInterfaceVar2 malloc()
      Returns a new SpvcMslShaderInterfaceVar2 instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nlocation(long struct)
      Unsafe version of location().
    • nformat

      public static int nformat(long struct)
      Unsafe version of format().
    • nbuiltin

      public static int nbuiltin(long struct)
      Unsafe version of builtin().
    • nvecsize

      public static int nvecsize(long struct)
      Unsafe version of vecsize().
    • nrate

      public static int nrate(long struct)
      Unsafe version of rate().
    • nlocation

      public static void nlocation(long struct, int value)
      Unsafe version of location.
    • nformat

      public static void nformat(long struct, int value)
      Unsafe version of format.
    • nbuiltin

      public static void nbuiltin(long struct, int value)
      Unsafe version of builtin.
    • nvecsize

      public static void nvecsize(long struct, int value)
      Unsafe version of vecsize.
    • nrate

      public static void nrate(long struct, int value)
      Unsafe version of rate.