public class VkShaderModuleCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
codeSize must be greater than 0pCode is a pointer to SPIR-V code, codeSize must be a multiple of 4pCode must point to either valid SPIR-V code, formatted and packed as described by the Khronos SPIR-V Specification or valid GLSL code which must be written to the GL_KHR_vulkan_glsl extension specificationpCode is a pointer to SPIR-V code, that code must adhere to the validation rules described by the Validation Rules within a Module section of the SPIR-V Environment appendixpCode is a pointer to GLSL code, it must be valid GLSL code written to the GL_KHR_vulkan_glsl GLSL extension specificationpCode must declare the Shader capability for SPIR-V codepCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendixpCode declares any of the capabilities listed as optional: in the SPIR-V Environment appendix, the corresponding feature(s) must be enabled.sType must be STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFOpNext must be NULL or a pointer to a valid instance of VkShaderModuleValidationCacheCreateInfoEXTflags must be 0pCode must be a valid pointer to an array of codeSize / 4 uint32_t valuessType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use.codeSize – the size, in bytes, of the code pointed to by pCode.pCode – points to code that is used to create the shader module
struct VkShaderModuleCreateInfo {
VkStructureType sType;
void const * pNext;
VkShaderModuleCreateFlags flags;
size_t codeSize;
uint32_t const * pCode;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkShaderModuleCreateInfo.Buffer
An array of
VkShaderModuleCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CODESIZE
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PCODE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkShaderModuleCreateInfo(java.nio.ByteBuffer container)
Creates a
VkShaderModuleCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkShaderModuleCreateInfo |
calloc()
Returns a new
VkShaderModuleCreateInfo instance allocated with memCalloc. |
static VkShaderModuleCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkShaderModuleCreateInfo.Buffer instance allocated with memCalloc. |
static VkShaderModuleCreateInfo |
callocStack()
Returns a new
VkShaderModuleCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkShaderModuleCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkShaderModuleCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkShaderModuleCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkShaderModuleCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkShaderModuleCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkShaderModuleCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
long |
codeSize()
Returns the value of the
codeSize field. |
static VkShaderModuleCreateInfo |
create()
Returns a new
VkShaderModuleCreateInfo instance allocated with BufferUtils. |
static VkShaderModuleCreateInfo.Buffer |
create(int capacity)
Returns a new
VkShaderModuleCreateInfo.Buffer instance allocated with BufferUtils. |
static VkShaderModuleCreateInfo |
create(long address)
Returns a new
VkShaderModuleCreateInfo instance for the specified memory address. |
static VkShaderModuleCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkShaderModuleCreateInfo.Buffer instance at the specified memory. |
static VkShaderModuleCreateInfo |
createSafe(long address)
|
static VkShaderModuleCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkShaderModuleCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
static VkShaderModuleCreateInfo |
malloc()
Returns a new
VkShaderModuleCreateInfo instance allocated with memAlloc. |
static VkShaderModuleCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkShaderModuleCreateInfo.Buffer instance allocated with memAlloc. |
static VkShaderModuleCreateInfo |
mallocStack()
Returns a new
VkShaderModuleCreateInfo instance allocated on the thread-local MemoryStack. |
static VkShaderModuleCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkShaderModuleCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkShaderModuleCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkShaderModuleCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkShaderModuleCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkShaderModuleCreateInfo instance allocated on the specified MemoryStack. |
static long |
ncodeSize(long struct)
Unsafe version of
codeSize(). |
static void |
ncodeSize(long struct,
long value)
Sets the specified value to the
codeSize field of the specified struct. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static java.nio.ByteBuffer |
npCode(long struct)
Unsafe version of
pCode. |
static void |
npCode(long struct,
java.nio.ByteBuffer value)
Unsafe version of
pCode. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
java.nio.ByteBuffer |
pCode()
Returns a
ByteBuffer view of the data pointed to by the pCode field. |
VkShaderModuleCreateInfo |
pCode(java.nio.ByteBuffer value)
Sets the address of the specified
ByteBuffer to the pCode field. |
long |
pNext()
Returns the value of the
pNext field. |
VkShaderModuleCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkShaderModuleCreateInfo |
set(int sType,
long pNext,
int flags,
java.nio.ByteBuffer pCode)
Initializes this struct with the specified values.
|
VkShaderModuleCreateInfo |
set(VkShaderModuleCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkShaderModuleCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int CODESIZE
public static final int PCODE
public VkShaderModuleCreateInfo(java.nio.ByteBuffer container)
VkShaderModuleCreateInfo 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 sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public long codeSize()
codeSize field.public java.nio.ByteBuffer pCode()
ByteBuffer view of the data pointed to by the pCode field.public VkShaderModuleCreateInfo sType(int value)
sType field.public VkShaderModuleCreateInfo pNext(long value)
pNext field.public VkShaderModuleCreateInfo flags(int value)
flags field.public VkShaderModuleCreateInfo pCode(java.nio.ByteBuffer value)
ByteBuffer to the pCode field.public VkShaderModuleCreateInfo set(int sType, long pNext, int flags, java.nio.ByteBuffer pCode)
public VkShaderModuleCreateInfo set(VkShaderModuleCreateInfo src)
src - the source structpublic static VkShaderModuleCreateInfo malloc()
VkShaderModuleCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkShaderModuleCreateInfo calloc()
VkShaderModuleCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkShaderModuleCreateInfo create()
VkShaderModuleCreateInfo instance allocated with BufferUtils.public static VkShaderModuleCreateInfo create(long address)
VkShaderModuleCreateInfo instance for the specified memory address.@Nullable public static VkShaderModuleCreateInfo createSafe(long address)
public static VkShaderModuleCreateInfo.Buffer malloc(int capacity)
VkShaderModuleCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkShaderModuleCreateInfo.Buffer calloc(int capacity)
VkShaderModuleCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkShaderModuleCreateInfo.Buffer create(int capacity)
VkShaderModuleCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkShaderModuleCreateInfo.Buffer create(long address, int capacity)
VkShaderModuleCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkShaderModuleCreateInfo.Buffer createSafe(long address, int capacity)
public static VkShaderModuleCreateInfo mallocStack()
VkShaderModuleCreateInfo instance allocated on the thread-local MemoryStack.public static VkShaderModuleCreateInfo callocStack()
VkShaderModuleCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkShaderModuleCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkShaderModuleCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkShaderModuleCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkShaderModuleCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkShaderModuleCreateInfo.Buffer mallocStack(int capacity)
VkShaderModuleCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkShaderModuleCreateInfo.Buffer callocStack(int capacity)
VkShaderModuleCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkShaderModuleCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkShaderModuleCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkShaderModuleCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkShaderModuleCreateInfo.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 nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static long ncodeSize(long struct)
codeSize().public static java.nio.ByteBuffer npCode(long struct)
pCode.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void ncodeSize(long struct,
long value)
codeSize field of the specified struct.public static void npCode(long struct,
java.nio.ByteBuffer value)
pCode.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.