Package org.lwjgl.util.spvc
Class SpvcHLSLResourceBinding
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class SpvcHLSLResourceBinding
extends Struct<SpvcHLSLResourceBinding>
implements NativeResource
struct spvc_hlsl_resource_binding {
SpvExecutionModel stage;
unsigned desc_set;
unsigned binding;
spvc_hlsl_resource_binding_mapping cbv;
spvc_hlsl_resource_binding_mapping uav;
spvc_hlsl_resource_binding_mapping srv;
spvc_hlsl_resource_binding_mapping sampler;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSpvcHLSLResourceBinding(ByteBuffer container) Creates aSpvcHLSLResourceBindinginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbinding()binding(int value) Sets the specified value to thebindingfield.static SpvcHLSLResourceBindingcalloc()Returns a newSpvcHLSLResourceBindinginstance allocated withmemCalloc.calloc(int capacity) Returns a newSpvcHLSLResourceBinding.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSpvcHLSLResourceBinding.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcHLSLResourceBindingcalloc(MemoryStack stack) Returns a newSpvcHLSLResourceBindinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.cbv()cbv(Consumer<SpvcHLSLResourceBindingMapping> consumer) Passes thecbvfield to the specifiedConsumer.Copies the specifiedSpvcHLSLResourceBindingMappingto thecbvfield.static SpvcHLSLResourceBindingcreate()Returns a newSpvcHLSLResourceBindinginstance allocated withBufferUtils.create(int capacity) Returns a newSpvcHLSLResourceBinding.Bufferinstance allocated withBufferUtils.static SpvcHLSLResourceBindingcreate(long address) Returns a newSpvcHLSLResourceBindinginstance for the specified memory address.create(long address, int capacity) Create aSpvcHLSLResourceBinding.Bufferinstance at the specified memory.static @Nullable SpvcHLSLResourceBindingcreateSafe(long address) static @Nullable SpvcHLSLResourceBinding.BuffercreateSafe(long address, int capacity) intdesc_set()desc_set(int value) Sets the specified value to thedesc_setfield.static SpvcHLSLResourceBindingmalloc()Returns a newSpvcHLSLResourceBindinginstance allocated withmemAlloc.malloc(int capacity) Returns a newSpvcHLSLResourceBinding.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSpvcHLSLResourceBinding.Bufferinstance allocated on the specifiedMemoryStack.static SpvcHLSLResourceBindingmalloc(MemoryStack stack) Returns a newSpvcHLSLResourceBindinginstance allocated on the specifiedMemoryStack.static intnbinding(long struct) Unsafe version ofbinding().static voidnbinding(long struct, int value) Unsafe version ofbinding.ncbv(long struct) Unsafe version ofcbv().static voidncbv(long struct, SpvcHLSLResourceBindingMapping value) Unsafe version ofcbv.static intndesc_set(long struct) Unsafe version ofdesc_set().static voidndesc_set(long struct, int value) Unsafe version ofdesc_set.nsampler(long struct) Unsafe version ofsampler().static voidnsampler(long struct, SpvcHLSLResourceBindingMapping value) Unsafe version ofsampler.nsrv(long struct) Unsafe version ofsrv().static voidnsrv(long struct, SpvcHLSLResourceBindingMapping value) Unsafe version ofsrv.static intnstage(long struct) Unsafe version ofstage().static voidnstage(long struct, int value) Unsafe version ofstage.nuav(long struct) Unsafe version ofuav().static voidnuav(long struct, SpvcHLSLResourceBindingMapping value) Unsafe version ofuav.sampler()sampler(Consumer<SpvcHLSLResourceBindingMapping> consumer) Passes thesamplerfield to the specifiedConsumer.Copies the specifiedSpvcHLSLResourceBindingMappingto thesamplerfield.set(int stage, int desc_set, int binding, SpvcHLSLResourceBindingMapping cbv, SpvcHLSLResourceBindingMapping uav, SpvcHLSLResourceBindingMapping srv, SpvcHLSLResourceBindingMapping sampler) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).srv()srv(Consumer<SpvcHLSLResourceBindingMapping> consumer) Passes thesrvfield to the specifiedConsumer.Copies the specifiedSpvcHLSLResourceBindingMappingto thesrvfield.intstage()stage(int value) Sets the specified value to thestagefield.uav()uav(Consumer<SpvcHLSLResourceBindingMapping> consumer) Passes theuavfield to the specifiedConsumer.Copies the specifiedSpvcHLSLResourceBindingMappingto theuavfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STAGE
public static final int STAGEThe struct member offsets. -
DESC_SET
public static final int DESC_SETThe struct member offsets. -
BINDING
public static final int BINDINGThe struct member offsets. -
CBV
public static final int CBVThe struct member offsets. -
UAV
public static final int UAVThe struct member offsets. -
SRV
public static final int SRVThe struct member offsets. -
SAMPLER
public static final int SAMPLERThe struct member offsets.
-
-
Constructor Details
-
SpvcHLSLResourceBinding
Creates aSpvcHLSLResourceBindinginstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<SpvcHLSLResourceBinding>
-
stage
public int stage()- Returns:
- the value of the
stagefield.
-
desc_set
public int desc_set()- Returns:
- the value of the
desc_setfield.
-
binding
public int binding()- Returns:
- the value of the
bindingfield.
-
cbv
- Returns:
- a
SpvcHLSLResourceBindingMappingview of thecbvfield.
-
uav
- Returns:
- a
SpvcHLSLResourceBindingMappingview of theuavfield.
-
srv
- Returns:
- a
SpvcHLSLResourceBindingMappingview of thesrvfield.
-
sampler
- Returns:
- a
SpvcHLSLResourceBindingMappingview of thesamplerfield.
-
stage
Sets the specified value to thestagefield. -
desc_set
Sets the specified value to thedesc_setfield. -
binding
Sets the specified value to thebindingfield. -
cbv
Copies the specifiedSpvcHLSLResourceBindingMappingto thecbvfield. -
cbv
Passes thecbvfield to the specifiedConsumer. -
uav
Copies the specifiedSpvcHLSLResourceBindingMappingto theuavfield. -
uav
Passes theuavfield to the specifiedConsumer. -
srv
Copies the specifiedSpvcHLSLResourceBindingMappingto thesrvfield. -
srv
Passes thesrvfield to the specifiedConsumer. -
sampler
Copies the specifiedSpvcHLSLResourceBindingMappingto thesamplerfield. -
sampler
Passes thesamplerfield to the specifiedConsumer. -
set
public SpvcHLSLResourceBinding set(int stage, int desc_set, int binding, SpvcHLSLResourceBindingMapping cbv, SpvcHLSLResourceBindingMapping uav, SpvcHLSLResourceBindingMapping srv, SpvcHLSLResourceBindingMapping sampler) 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 newSpvcHLSLResourceBindinginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSpvcHLSLResourceBindinginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSpvcHLSLResourceBindinginstance allocated withBufferUtils. -
create
Returns a newSpvcHLSLResourceBindinginstance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcHLSLResourceBinding.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSpvcHLSLResourceBinding.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSpvcHLSLResourceBinding.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSpvcHLSLResourceBinding.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcHLSLResourceBindinginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSpvcHLSLResourceBindinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSpvcHLSLResourceBinding.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSpvcHLSLResourceBinding.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nstage
public static int nstage(long struct) Unsafe version ofstage(). -
ndesc_set
public static int ndesc_set(long struct) Unsafe version ofdesc_set(). -
nbinding
public static int nbinding(long struct) Unsafe version ofbinding(). -
ncbv
Unsafe version ofcbv(). -
nuav
Unsafe version ofuav(). -
nsrv
Unsafe version ofsrv(). -
nsampler
Unsafe version ofsampler(). -
nstage
public static void nstage(long struct, int value) Unsafe version ofstage. -
ndesc_set
public static void ndesc_set(long struct, int value) Unsafe version ofdesc_set. -
nbinding
public static void nbinding(long struct, int value) Unsafe version ofbinding. -
ncbv
Unsafe version ofcbv. -
nuav
Unsafe version ofuav. -
nsrv
Unsafe version ofsrv. -
nsampler
Unsafe version ofsampler.
-