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;
{@link SpvcHLSLResourceBindingMapping spvc_hlsl_resource_binding_mapping} cbv;
{@link SpvcHLSLResourceBindingMapping spvc_hlsl_resource_binding_mapping} uav;
{@link SpvcHLSLResourceBindingMapping spvc_hlsl_resource_binding_mapping} srv;
{@link SpvcHLSLResourceBindingMapping spvc_hlsl_resource_binding_mapping} sampler;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aSpvcHLSLResourceBinding
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
binding()
binding
(int value) Sets the specified value to thebinding
field.static SpvcHLSLResourceBinding
calloc()
Returns a newSpvcHLSLResourceBinding
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSpvcHLSLResourceBinding.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSpvcHLSLResourceBinding.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SpvcHLSLResourceBinding
calloc
(MemoryStack stack) Returns a newSpvcHLSLResourceBinding
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.cbv()
cbv
(Consumer<SpvcHLSLResourceBindingMapping> consumer) Passes thecbv
field to the specifiedConsumer
.Copies the specifiedSpvcHLSLResourceBindingMapping
to thecbv
field.static SpvcHLSLResourceBinding
create()
Returns a newSpvcHLSLResourceBinding
instance allocated withBufferUtils
.create
(int capacity) Returns a newSpvcHLSLResourceBinding.Buffer
instance allocated withBufferUtils
.static SpvcHLSLResourceBinding
create
(long address) Returns a newSpvcHLSLResourceBinding
instance for the specified memory address.create
(long address, int capacity) Create aSpvcHLSLResourceBinding.Buffer
instance at the specified memory.static @Nullable SpvcHLSLResourceBinding
createSafe
(long address) static @Nullable SpvcHLSLResourceBinding.Buffer
createSafe
(long address, int capacity) int
desc_set()
desc_set
(int value) Sets the specified value to thedesc_set
field.static SpvcHLSLResourceBinding
malloc()
Returns a newSpvcHLSLResourceBinding
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSpvcHLSLResourceBinding.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSpvcHLSLResourceBinding.Buffer
instance allocated on the specifiedMemoryStack
.static SpvcHLSLResourceBinding
malloc
(MemoryStack stack) Returns a newSpvcHLSLResourceBinding
instance allocated on the specifiedMemoryStack
.static int
nbinding
(long struct) Unsafe version ofbinding()
.static void
nbinding
(long struct, int value) Unsafe version ofbinding
.ncbv
(long struct) Unsafe version ofcbv()
.static void
ncbv
(long struct, SpvcHLSLResourceBindingMapping value) Unsafe version ofcbv
.static int
ndesc_set
(long struct) Unsafe version ofdesc_set()
.static void
ndesc_set
(long struct, int value) Unsafe version ofdesc_set
.nsampler
(long struct) Unsafe version ofsampler()
.static void
nsampler
(long struct, SpvcHLSLResourceBindingMapping value) Unsafe version ofsampler
.nsrv
(long struct) Unsafe version ofsrv()
.static void
nsrv
(long struct, SpvcHLSLResourceBindingMapping value) Unsafe version ofsrv
.static int
nstage
(long struct) Unsafe version ofstage()
.static void
nstage
(long struct, int value) Unsafe version ofstage
.nuav
(long struct) Unsafe version ofuav()
.static void
nuav
(long struct, SpvcHLSLResourceBindingMapping value) Unsafe version ofuav
.sampler()
sampler
(Consumer<SpvcHLSLResourceBindingMapping> consumer) Passes thesampler
field to the specifiedConsumer
.Copies the specifiedSpvcHLSLResourceBindingMapping
to thesampler
field.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.int
sizeof()
Returnssizeof(struct)
.srv()
srv
(Consumer<SpvcHLSLResourceBindingMapping> consumer) Passes thesrv
field to the specifiedConsumer
.Copies the specifiedSpvcHLSLResourceBindingMapping
to thesrv
field.int
stage()
stage
(int value) Sets the specified value to thestage
field.uav()
uav
(Consumer<SpvcHLSLResourceBindingMapping> consumer) Passes theuav
field to the specifiedConsumer
.Copies the specifiedSpvcHLSLResourceBindingMapping
to theuav
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aSpvcHLSLResourceBinding
instance at the current position of the specifiedByteBuffer
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()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<SpvcHLSLResourceBinding>
-
stage
public int stage()- Returns:
- the value of the
stage
field.
-
desc_set
public int desc_set()- Returns:
- the value of the
desc_set
field.
-
binding
public int binding()- Returns:
- the value of the
binding
field.
-
cbv
- Returns:
- a
SpvcHLSLResourceBindingMapping
view of thecbv
field.
-
uav
- Returns:
- a
SpvcHLSLResourceBindingMapping
view of theuav
field.
-
srv
- Returns:
- a
SpvcHLSLResourceBindingMapping
view of thesrv
field.
-
sampler
- Returns:
- a
SpvcHLSLResourceBindingMapping
view of thesampler
field.
-
stage
Sets the specified value to thestage
field. -
desc_set
Sets the specified value to thedesc_set
field. -
binding
Sets the specified value to thebinding
field. -
cbv
Copies the specifiedSpvcHLSLResourceBindingMapping
to thecbv
field. -
cbv
Passes thecbv
field to the specifiedConsumer
. -
uav
Copies the specifiedSpvcHLSLResourceBindingMapping
to theuav
field. -
uav
Passes theuav
field to the specifiedConsumer
. -
srv
Copies the specifiedSpvcHLSLResourceBindingMapping
to thesrv
field. -
srv
Passes thesrv
field to the specifiedConsumer
. -
sampler
Copies the specifiedSpvcHLSLResourceBindingMapping
to thesampler
field. -
sampler
Passes thesampler
field 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 newSpvcHLSLResourceBinding
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSpvcHLSLResourceBinding
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSpvcHLSLResourceBinding
instance allocated withBufferUtils
. -
create
Returns a newSpvcHLSLResourceBinding
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcHLSLResourceBinding.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSpvcHLSLResourceBinding.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSpvcHLSLResourceBinding.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSpvcHLSLResourceBinding.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcHLSLResourceBinding
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSpvcHLSLResourceBinding
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSpvcHLSLResourceBinding.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSpvcHLSLResourceBinding.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-