Package org.lwjgl.util.spvc
Class SpvcCombinedImageSampler
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class SpvcCombinedImageSampler
extends Struct<SpvcCombinedImageSampler>
implements NativeResource
struct spvc_combined_image_sampler {
spvc_variable_id combined_id;
spvc_variable_id image_id;
spvc_variable_id sampler_id;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSpvcCombinedImageSampler(ByteBuffer container) Creates aSpvcCombinedImageSamplerinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SpvcCombinedImageSamplercalloc()Returns a newSpvcCombinedImageSamplerinstance allocated withmemCalloc.calloc(int capacity) Returns a newSpvcCombinedImageSampler.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSpvcCombinedImageSampler.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcCombinedImageSamplercalloc(MemoryStack stack) Returns a newSpvcCombinedImageSamplerinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcombined_id(int value) Sets the specified value to thecombined_idfield.static SpvcCombinedImageSamplercreate()Returns a newSpvcCombinedImageSamplerinstance allocated withBufferUtils.create(int capacity) Returns a newSpvcCombinedImageSampler.Bufferinstance allocated withBufferUtils.static SpvcCombinedImageSamplercreate(long address) Returns a newSpvcCombinedImageSamplerinstance for the specified memory address.create(long address, int capacity) Create aSpvcCombinedImageSampler.Bufferinstance at the specified memory.static @Nullable SpvcCombinedImageSamplercreateSafe(long address) static @Nullable SpvcCombinedImageSampler.BuffercreateSafe(long address, int capacity) intimage_id()image_id(int value) Sets the specified value to theimage_idfield.static SpvcCombinedImageSamplermalloc()Returns a newSpvcCombinedImageSamplerinstance allocated withmemAlloc.malloc(int capacity) Returns a newSpvcCombinedImageSampler.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSpvcCombinedImageSampler.Bufferinstance allocated on the specifiedMemoryStack.static SpvcCombinedImageSamplermalloc(MemoryStack stack) Returns a newSpvcCombinedImageSamplerinstance allocated on the specifiedMemoryStack.static intncombined_id(long struct) Unsafe version ofcombined_id().static voidncombined_id(long struct, int value) Unsafe version ofcombined_id.static intnimage_id(long struct) Unsafe version ofimage_id().static voidnimage_id(long struct, int value) Unsafe version ofimage_id.static intnsampler_id(long struct) Unsafe version ofsampler_id().static voidnsampler_id(long struct, int value) Unsafe version ofsampler_id.intsampler_id(int value) Sets the specified value to thesampler_idfield.set(int combined_id, int image_id, int sampler_id) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
COMBINED_ID
public static final int COMBINED_IDThe struct member offsets. -
IMAGE_ID
public static final int IMAGE_IDThe struct member offsets. -
SAMPLER_ID
public static final int SAMPLER_IDThe struct member offsets.
-
-
Constructor Details
-
SpvcCombinedImageSampler
Creates aSpvcCombinedImageSamplerinstance 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<SpvcCombinedImageSampler>
-
combined_id
public int combined_id()- Returns:
- the value of the
combined_idfield.
-
image_id
public int image_id()- Returns:
- the value of the
image_idfield.
-
sampler_id
public int sampler_id()- Returns:
- the value of the
sampler_idfield.
-
combined_id
Sets the specified value to thecombined_idfield. -
image_id
Sets the specified value to theimage_idfield. -
sampler_id
Sets the specified value to thesampler_idfield. -
set
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 newSpvcCombinedImageSamplerinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSpvcCombinedImageSamplerinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSpvcCombinedImageSamplerinstance allocated withBufferUtils. -
create
Returns a newSpvcCombinedImageSamplerinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcCombinedImageSampler.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSpvcCombinedImageSampler.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSpvcCombinedImageSampler.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSpvcCombinedImageSampler.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcCombinedImageSamplerinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSpvcCombinedImageSamplerinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSpvcCombinedImageSampler.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSpvcCombinedImageSampler.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ncombined_id
public static int ncombined_id(long struct) Unsafe version ofcombined_id(). -
nimage_id
public static int nimage_id(long struct) Unsafe version ofimage_id(). -
nsampler_id
public static int nsampler_id(long struct) Unsafe version ofsampler_id(). -
ncombined_id
public static void ncombined_id(long struct, int value) Unsafe version ofcombined_id. -
nimage_id
public static void nimage_id(long struct, int value) Unsafe version ofimage_id. -
nsampler_id
public static void nsampler_id(long struct, int value) Unsafe version ofsampler_id.
-