public class SpvcCombinedImageSampler
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
combined_id – the ID of the sampler2D variableimage_id – the ID of the texture2D variablesampler_id – the ID of the sampler variable
struct SpvcCombinedImageSampler {
spvc_variable_id combined_id;
spvc_variable_id image_id;
spvc_variable_id sampler_id;
}| Modifier and Type | Class and Description |
|---|---|
static class |
SpvcCombinedImageSampler.Buffer
An array of
SpvcCombinedImageSampler structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COMBINED_ID
The struct member offsets.
|
static int |
IMAGE_ID
The struct member offsets.
|
static int |
SAMPLER_ID
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
SpvcCombinedImageSampler(java.nio.ByteBuffer container)
Creates a
SpvcCombinedImageSampler instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static SpvcCombinedImageSampler |
calloc()
Returns a new
SpvcCombinedImageSampler instance allocated with memCalloc. |
static SpvcCombinedImageSampler.Buffer |
calloc(int capacity)
Returns a new
SpvcCombinedImageSampler.Buffer instance allocated with memCalloc. |
static SpvcCombinedImageSampler |
callocStack()
Returns a new
SpvcCombinedImageSampler instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SpvcCombinedImageSampler.Buffer |
callocStack(int capacity)
Returns a new
SpvcCombinedImageSampler.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SpvcCombinedImageSampler.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcCombinedImageSampler.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SpvcCombinedImageSampler |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcCombinedImageSampler instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
combined_id()
Returns the value of the
combined_id field. |
SpvcCombinedImageSampler |
combined_id(int value)
Sets the specified value to the
combined_id field. |
static SpvcCombinedImageSampler |
create()
Returns a new
SpvcCombinedImageSampler instance allocated with BufferUtils. |
static SpvcCombinedImageSampler.Buffer |
create(int capacity)
Returns a new
SpvcCombinedImageSampler.Buffer instance allocated with BufferUtils. |
static SpvcCombinedImageSampler |
create(long address)
Returns a new
SpvcCombinedImageSampler instance for the specified memory address. |
static SpvcCombinedImageSampler.Buffer |
create(long address,
int capacity)
Create a
SpvcCombinedImageSampler.Buffer instance at the specified memory. |
static SpvcCombinedImageSampler |
createSafe(long address)
|
static SpvcCombinedImageSampler.Buffer |
createSafe(long address,
int capacity)
|
int |
image_id()
Returns the value of the
image_id field. |
SpvcCombinedImageSampler |
image_id(int value)
Sets the specified value to the
image_id field. |
static SpvcCombinedImageSampler |
malloc()
Returns a new
SpvcCombinedImageSampler instance allocated with memAlloc. |
static SpvcCombinedImageSampler.Buffer |
malloc(int capacity)
Returns a new
SpvcCombinedImageSampler.Buffer instance allocated with memAlloc. |
static SpvcCombinedImageSampler |
mallocStack()
Returns a new
SpvcCombinedImageSampler instance allocated on the thread-local MemoryStack. |
static SpvcCombinedImageSampler.Buffer |
mallocStack(int capacity)
Returns a new
SpvcCombinedImageSampler.Buffer instance allocated on the thread-local MemoryStack. |
static SpvcCombinedImageSampler.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcCombinedImageSampler.Buffer instance allocated on the specified MemoryStack. |
static SpvcCombinedImageSampler |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcCombinedImageSampler instance allocated on the specified MemoryStack. |
static int |
ncombined_id(long struct)
Unsafe version of
combined_id(). |
static void |
ncombined_id(long struct,
int value)
Unsafe version of
combined_id. |
static int |
nimage_id(long struct)
Unsafe version of
image_id(). |
static void |
nimage_id(long struct,
int value)
Unsafe version of
image_id. |
static int |
nsampler_id(long struct)
Unsafe version of
sampler_id(). |
static void |
nsampler_id(long struct,
int value)
Unsafe version of
sampler_id. |
int |
sampler_id()
Returns the value of the
sampler_id field. |
SpvcCombinedImageSampler |
sampler_id(int value)
Sets the specified value to the
sampler_id field. |
SpvcCombinedImageSampler |
set(int combined_id,
int image_id,
int sampler_id)
Initializes this struct with the specified values.
|
SpvcCombinedImageSampler |
set(SpvcCombinedImageSampler src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int COMBINED_ID
public static final int IMAGE_ID
public static final int SAMPLER_ID
public SpvcCombinedImageSampler(java.nio.ByteBuffer container)
SpvcCombinedImageSampler instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int combined_id()
combined_id field.public int image_id()
image_id field.public int sampler_id()
sampler_id field.public SpvcCombinedImageSampler combined_id(int value)
combined_id field.public SpvcCombinedImageSampler image_id(int value)
image_id field.public SpvcCombinedImageSampler sampler_id(int value)
sampler_id field.public SpvcCombinedImageSampler set(int combined_id, int image_id, int sampler_id)
public SpvcCombinedImageSampler set(SpvcCombinedImageSampler src)
src - the source structpublic static SpvcCombinedImageSampler malloc()
SpvcCombinedImageSampler instance allocated with memAlloc. The instance must be explicitly freed.public static SpvcCombinedImageSampler calloc()
SpvcCombinedImageSampler instance allocated with memCalloc. The instance must be explicitly freed.public static SpvcCombinedImageSampler create()
SpvcCombinedImageSampler instance allocated with BufferUtils.public static SpvcCombinedImageSampler create(long address)
SpvcCombinedImageSampler instance for the specified memory address.@Nullable public static SpvcCombinedImageSampler createSafe(long address)
public static SpvcCombinedImageSampler.Buffer malloc(int capacity)
SpvcCombinedImageSampler.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SpvcCombinedImageSampler.Buffer calloc(int capacity)
SpvcCombinedImageSampler.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SpvcCombinedImageSampler.Buffer create(int capacity)
SpvcCombinedImageSampler.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static SpvcCombinedImageSampler.Buffer create(long address, int capacity)
SpvcCombinedImageSampler.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static SpvcCombinedImageSampler.Buffer createSafe(long address, int capacity)
public static SpvcCombinedImageSampler mallocStack()
SpvcCombinedImageSampler instance allocated on the thread-local MemoryStack.public static SpvcCombinedImageSampler callocStack()
SpvcCombinedImageSampler instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static SpvcCombinedImageSampler mallocStack(org.lwjgl.system.MemoryStack stack)
SpvcCombinedImageSampler instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static SpvcCombinedImageSampler callocStack(org.lwjgl.system.MemoryStack stack)
SpvcCombinedImageSampler instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static SpvcCombinedImageSampler.Buffer mallocStack(int capacity)
SpvcCombinedImageSampler.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static SpvcCombinedImageSampler.Buffer callocStack(int capacity)
SpvcCombinedImageSampler.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static SpvcCombinedImageSampler.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SpvcCombinedImageSampler.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static SpvcCombinedImageSampler.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SpvcCombinedImageSampler.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int ncombined_id(long struct)
combined_id().public static int nimage_id(long struct)
image_id().public static int nsampler_id(long struct)
sampler_id().public static void ncombined_id(long struct,
int value)
combined_id.public static void nimage_id(long struct,
int value)
image_id.public static void nsampler_id(long struct,
int value)
sampler_id.Copyright LWJGL. All Rights Reserved. License terms.