Package org.lwjgl.util.spvc
Class SpvcHLSLResourceBindingMapping
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.spvc.SpvcHLSLResourceBindingMapping
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class SpvcHLSLResourceBindingMapping extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct spvc_hlsl_resource_binding_mapping { unsigned register_space; unsigned register_binding; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpvcHLSLResourceBindingMapping.BufferAn array ofSpvcHLSLResourceBindingMappingstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intREGISTER_BINDING
REGISTER_SPACEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description SpvcHLSLResourceBindingMapping(java.nio.ByteBuffer container)Creates aSpvcHLSLResourceBindingMappinginstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpvcHLSLResourceBindingMappingcalloc()Returns a newSpvcHLSLResourceBindingMappinginstance allocated withmemCalloc.static SpvcHLSLResourceBindingMapping.Buffercalloc(int capacity)Returns a newSpvcHLSLResourceBindingMapping.Bufferinstance allocated withmemCalloc.static SpvcHLSLResourceBindingMapping.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcHLSLResourceBindingMapping.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcHLSLResourceBindingMappingcalloc(org.lwjgl.system.MemoryStack stack)Returns a newSpvcHLSLResourceBindingMappinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcHLSLResourceBindingMappingcreate()Returns a newSpvcHLSLResourceBindingMappinginstance allocated withBufferUtils.static SpvcHLSLResourceBindingMapping.Buffercreate(int capacity)Returns a newSpvcHLSLResourceBindingMapping.Bufferinstance allocated withBufferUtils.static SpvcHLSLResourceBindingMappingcreate(long address)Returns a newSpvcHLSLResourceBindingMappinginstance for the specified memory address.static SpvcHLSLResourceBindingMapping.Buffercreate(long address, int capacity)Create aSpvcHLSLResourceBindingMapping.Bufferinstance at the specified memory.static SpvcHLSLResourceBindingMappingcreateSafe(long address)static SpvcHLSLResourceBindingMapping.BuffercreateSafe(long address, int capacity)static SpvcHLSLResourceBindingMappingmalloc()Returns a newSpvcHLSLResourceBindingMappinginstance allocated withmemAlloc.static SpvcHLSLResourceBindingMapping.Buffermalloc(int capacity)Returns a newSpvcHLSLResourceBindingMapping.Bufferinstance allocated withmemAlloc.static SpvcHLSLResourceBindingMapping.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcHLSLResourceBindingMapping.Bufferinstance allocated on the specifiedMemoryStack.static SpvcHLSLResourceBindingMappingmalloc(org.lwjgl.system.MemoryStack stack)Returns a newSpvcHLSLResourceBindingMappinginstance allocated on the specifiedMemoryStack.static intnregister_binding(long struct)Unsafe version ofregister_binding().static voidnregister_binding(long struct, int value)Unsafe version ofregister_binding.static intnregister_space(long struct)Unsafe version ofregister_space().static voidnregister_space(long struct, int value)Unsafe version ofregister_space.intregister_binding()SpvcHLSLResourceBindingMappingregister_binding(int value)Sets the specified value to theregister_bindingfield.intregister_space()SpvcHLSLResourceBindingMappingregister_space(int value)Sets the specified value to theregister_spacefield.SpvcHLSLResourceBindingMappingset(int register_space, int register_binding)Initializes this struct with the specified values.SpvcHLSLResourceBindingMappingset(SpvcHLSLResourceBindingMapping src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
SpvcHLSLResourceBindingMapping
public SpvcHLSLResourceBindingMapping(java.nio.ByteBuffer container)
Creates aSpvcHLSLResourceBindingMappinginstance at the current position of the specifiedByteBuffercontainer. 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
register_space
public int register_space()
- Returns:
- the value of the
register_spacefield.
-
register_binding
public int register_binding()
- Returns:
- the value of the
register_bindingfield.
-
register_space
public SpvcHLSLResourceBindingMapping register_space(int value)
Sets the specified value to theregister_spacefield.
-
register_binding
public SpvcHLSLResourceBindingMapping register_binding(int value)
Sets the specified value to theregister_bindingfield.
-
set
public SpvcHLSLResourceBindingMapping set(int register_space, int register_binding)
Initializes this struct with the specified values.
-
set
public SpvcHLSLResourceBindingMapping set(SpvcHLSLResourceBindingMapping src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static SpvcHLSLResourceBindingMapping malloc()
Returns a newSpvcHLSLResourceBindingMappinginstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static SpvcHLSLResourceBindingMapping calloc()
Returns a newSpvcHLSLResourceBindingMappinginstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static SpvcHLSLResourceBindingMapping create()
Returns a newSpvcHLSLResourceBindingMappinginstance allocated withBufferUtils.
-
create
public static SpvcHLSLResourceBindingMapping create(long address)
Returns a newSpvcHLSLResourceBindingMappinginstance for the specified memory address.
-
createSafe
@Nullable public static SpvcHLSLResourceBindingMapping createSafe(long address)
-
malloc
public static SpvcHLSLResourceBindingMapping.Buffer malloc(int capacity)
Returns a newSpvcHLSLResourceBindingMapping.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static SpvcHLSLResourceBindingMapping.Buffer calloc(int capacity)
Returns a newSpvcHLSLResourceBindingMapping.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcHLSLResourceBindingMapping.Buffer create(int capacity)
Returns a newSpvcHLSLResourceBindingMapping.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcHLSLResourceBindingMapping.Buffer create(long address, int capacity)
Create aSpvcHLSLResourceBindingMapping.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static SpvcHLSLResourceBindingMapping.Buffer createSafe(long address, int capacity)
-
malloc
public static SpvcHLSLResourceBindingMapping malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcHLSLResourceBindingMappinginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static SpvcHLSLResourceBindingMapping calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcHLSLResourceBindingMappinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static SpvcHLSLResourceBindingMapping.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcHLSLResourceBindingMapping.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static SpvcHLSLResourceBindingMapping.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcHLSLResourceBindingMapping.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nregister_space
public static int nregister_space(long struct)
Unsafe version ofregister_space().
-
nregister_binding
public static int nregister_binding(long struct)
Unsafe version ofregister_binding().
-
nregister_space
public static void nregister_space(long struct, int value)Unsafe version ofregister_space.
-
nregister_binding
public static void nregister_binding(long struct, int value)Unsafe version ofregister_binding.
-
-