Package org.lwjgl.util.spvc
Class SpvcCombinedImageSampler
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.spvc.SpvcCombinedImageSampler
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class SpvcCombinedImageSampler extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct spvc_combined_image_sampler { spvc_variable_idcombined_id(); spvc_variable_idimage_id(); spvc_variable_idsampler_id(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpvcCombinedImageSampler.BufferAn array ofSpvcCombinedImageSamplerstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMBINED_ID
IMAGE_ID
SAMPLER_IDThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description SpvcCombinedImageSampler(java.nio.ByteBuffer container)Creates aSpvcCombinedImageSamplerinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpvcCombinedImageSamplercalloc()Returns a newSpvcCombinedImageSamplerinstance allocated withmemCalloc.static SpvcCombinedImageSampler.Buffercalloc(int capacity)Returns a newSpvcCombinedImageSampler.Bufferinstance allocated withmemCalloc.static SpvcCombinedImageSampler.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcCombinedImageSampler.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcCombinedImageSamplercalloc(org.lwjgl.system.MemoryStack stack)Returns a newSpvcCombinedImageSamplerinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcombined_id()the ID of thesampler2DvariableSpvcCombinedImageSamplercombined_id(int value)Sets the specified value to thecombined_id()field.static SpvcCombinedImageSamplercreate()Returns a newSpvcCombinedImageSamplerinstance allocated withBufferUtils.static SpvcCombinedImageSampler.Buffercreate(int capacity)Returns a newSpvcCombinedImageSampler.Bufferinstance allocated withBufferUtils.static SpvcCombinedImageSamplercreate(long address)Returns a newSpvcCombinedImageSamplerinstance for the specified memory address.static SpvcCombinedImageSampler.Buffercreate(long address, int capacity)Create aSpvcCombinedImageSampler.Bufferinstance at the specified memory.static SpvcCombinedImageSamplercreateSafe(long address)static SpvcCombinedImageSampler.BuffercreateSafe(long address, int capacity)intimage_id()the ID of thetexture2DvariableSpvcCombinedImageSamplerimage_id(int value)Sets the specified value to theimage_id()field.static SpvcCombinedImageSamplermalloc()Returns a newSpvcCombinedImageSamplerinstance allocated withmemAlloc.static SpvcCombinedImageSampler.Buffermalloc(int capacity)Returns a newSpvcCombinedImageSampler.Bufferinstance allocated withmemAlloc.static SpvcCombinedImageSampler.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcCombinedImageSampler.Bufferinstance allocated on the specifiedMemoryStack.static SpvcCombinedImageSamplermalloc(org.lwjgl.system.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()the ID of thesamplervariableSpvcCombinedImageSamplersampler_id(int value)Sets the specified value to thesampler_id()field.SpvcCombinedImageSamplerset(int combined_id, int image_id, int sampler_id)Initializes this struct with the specified values.SpvcCombinedImageSamplerset(SpvcCombinedImageSampler src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
SpvcCombinedImageSampler
public SpvcCombinedImageSampler(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
combined_id
public int combined_id()
the ID of thesampler2Dvariable
-
image_id
public int image_id()
the ID of thetexture2Dvariable
-
sampler_id
public int sampler_id()
the ID of thesamplervariable
-
combined_id
public SpvcCombinedImageSampler combined_id(int value)
Sets the specified value to thecombined_id()field.
-
image_id
public SpvcCombinedImageSampler image_id(int value)
Sets the specified value to theimage_id()field.
-
sampler_id
public SpvcCombinedImageSampler sampler_id(int value)
Sets the specified value to thesampler_id()field.
-
set
public SpvcCombinedImageSampler set(int combined_id, int image_id, int sampler_id)
Initializes this struct with the specified values.
-
set
public SpvcCombinedImageSampler set(SpvcCombinedImageSampler src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static SpvcCombinedImageSampler malloc()
Returns a newSpvcCombinedImageSamplerinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static SpvcCombinedImageSampler calloc()
Returns a newSpvcCombinedImageSamplerinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static SpvcCombinedImageSampler create()
Returns a newSpvcCombinedImageSamplerinstance allocated withBufferUtils.
-
create
public static SpvcCombinedImageSampler create(long address)
Returns a newSpvcCombinedImageSamplerinstance for the specified memory address.
-
createSafe
@Nullable public static SpvcCombinedImageSampler createSafe(long address)
-
malloc
public static SpvcCombinedImageSampler.Buffer malloc(int capacity)
Returns a newSpvcCombinedImageSampler.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static SpvcCombinedImageSampler.Buffer calloc(int capacity)
Returns a newSpvcCombinedImageSampler.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcCombinedImageSampler.Buffer create(int capacity)
Returns a newSpvcCombinedImageSampler.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcCombinedImageSampler.Buffer create(long address, int capacity)
Create aSpvcCombinedImageSampler.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static SpvcCombinedImageSampler.Buffer createSafe(long address, int capacity)
-
malloc
public static SpvcCombinedImageSampler malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcCombinedImageSamplerinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static SpvcCombinedImageSampler calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcCombinedImageSamplerinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static SpvcCombinedImageSampler.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcCombinedImageSampler.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static SpvcCombinedImageSampler.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcCombinedImageSampler.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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.
-
-