codeSize must be a multiple of 4pCode must point to valid SPIR-V code, formatted and packed as described by the Khronos SPIR-V SpecificationpCode must adhere to the validation rules described by the Validation Rules within a Module section of the SPIR-V Environment appendixpCode 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 in the SPIR-V Environment appendix, one of the corresponding requirements must be satisfiedpCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendixpCode declares any of the SPIR-V extensions listed in the SPIR-V Environment appendix, one of the corresponding requirements must be satisfiedVK_NV_glsl_shader extension is not enabled, pCode must be a pointer to SPIR-V codepCode is a pointer to GLSL code, it must be valid GLSL code written to the GL_KHR_vulkan_glsl GLSL extension specificationcodeSize must be greater than 0sType must be STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFOflags must be 0pCode must be a valid pointer to an array of codeSize / 4 uint32_t valuesCreateShaderModule, GetShaderModuleCreateInfoIdentifierEXT
struct VkShaderModuleCreateInfo {
VkStructureType sType;
void const * pNext;
VkShaderModuleCreateFlags flags;
size_t codeSize;
uint32_t const * pCode;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkShaderModuleCreateInfo.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CODESIZE
The struct member offsets. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | PCODE
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkShaderModuleCreateInfo(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkShaderModuleCreateInfo | |
| public static VkShaderModuleCreateInfo. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkShaderModuleCreateInfo | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkShaderModuleCreateInfo. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkShaderModuleCreateInfo | |
| public static VkShaderModuleCreateInfo | |
| public static VkShaderModuleCreateInfo. | |
| public static VkShaderModuleCreateInfo. | |
| public long | |
| protected VkShaderModuleCreateInfo | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkShaderModuleCreateInfo | |
| public static VkShaderModuleCreateInfo | create(long address)
Returns a new |
| public static VkShaderModuleCreateInfo. | create(int
the buffer capacity capacity)Returns a new |
| public static VkShaderModuleCreateInfo. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkShaderModuleCreateInfo | |
| public static VkShaderModuleCreateInfo. | |
| public int | |
| public VkShaderModuleCreateInfo | |
| public static VkShaderModuleCreateInfo | |
| public static VkShaderModuleCreateInfo. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkShaderModuleCreateInfo | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkShaderModuleCreateInfo. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkShaderModuleCreateInfo | |
| public static VkShaderModuleCreateInfo | |
| public static VkShaderModuleCreateInfo. | |
| public static VkShaderModuleCreateInfo. | |
| public static long | |
| public static void | ncodeSize(long struct, long value)
Sets the specified value to the |
| public static int | |
| public static void | |
| public static ByteBuffer | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public ByteBuffer | |
| public VkShaderModuleCreateInfo | |
| public long | |
| public VkShaderModuleCreateInfo | |
| public VkShaderModuleCreateInfo | pNext(VkShaderModuleValidationCacheCreateInfoEXT value)
Prepends the specified |
| public VkShaderModuleCreateInfo | set(int sType, long pNext, int flags, ByteBuffer pCode)
Initializes this struct with the specified values. |
| public VkShaderModuleCreateInfo | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkShaderModuleCreateInfo | |
| public VkShaderModuleCreateInfo | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CODESIZE | back to summary |
|---|---|
| public static final int CODESIZE The struct member offsets. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| PCODE | back to summary |
|---|---|
| public static final int PCODE The struct member offsets. | |
| PNEXT | back to summary |
|---|---|
| public static final int PNEXT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STYPE | back to summary |
|---|---|
| public static final int STYPE The struct member offsets. | |
| VkShaderModuleCreateInfo | back to summary |
|---|---|
| protected VkShaderModuleCreateInfo(long address, ByteBuffer container) | |
| VkShaderModuleCreateInfo | back to summary |
|---|---|
| public VkShaderModuleCreateInfo(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| codeSize | back to summary |
|---|---|
| public long codeSize() the size, in bytes, of the code pointed to by
| |
| create | back to summary |
|---|---|
| protected VkShaderModuleCreateInfo create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo. Like
| |
| flags | back to summary |
|---|---|
| public int flags() reserved for future use.
| |
| flags | back to summary |
|---|---|
| public VkShaderModuleCreateInfo flags(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkShaderModuleCreateInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| ncodeSize | back to summary |
|---|---|
| public static long ncodeSize(long struct) Unsafe version of | |
| ncodeSize | back to summary |
|---|---|
| public static void ncodeSize(long struct, long value) Sets the specified value to the | |
| nflags | back to summary |
|---|---|
| public static int nflags(long struct) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static void nflags(long struct, int value) Unsafe version of | |
| npCode | back to summary |
|---|---|
| public static ByteBuffer npCode(long struct) Unsafe version of | |
| npCode | back to summary |
|---|---|
| public static void npCode(long struct, ByteBuffer value) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static long npNext(long struct) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static void npNext(long struct, long value) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static int nsType(long struct) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static void nsType(long struct, int value) Unsafe version of | |
| pCode | back to summary |
|---|---|
| public ByteBuffer pCode() points to code that is used to create the shader module
| |
| pCode | back to summary |
|---|---|
| public VkShaderModuleCreateInfo pCode(ByteBuffer value) Sets the address of the specified | |
| pNext | back to summary |
|---|---|
| public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkShaderModuleCreateInfo pNext(long value) Sets the specified value to the | |
| pNext | back to summary |
|---|---|
| public VkShaderModuleCreateInfo pNext(VkShaderModuleValidationCacheCreateInfoEXT value) Prepends the specified | |
| set | back to summary |
|---|---|
| public VkShaderModuleCreateInfo set(int sType, long pNext, int flags, ByteBuffer pCode) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkShaderModuleCreateInfo set(VkShaderModuleCreateInfo src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| sType | back to summary |
|---|---|
| public int sType() a
| |
| sType | back to summary |
|---|---|
| public VkShaderModuleCreateInfo sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkShaderModuleCreateInfo sType$Default() Sets the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
VkShaderModuleCreateInfo structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkShaderModuleCreateInfo |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public int | |
| public VkShaderModuleCreateInfo. | |
| protected VkShaderModuleCreateInfo | |
| public ByteBuffer | |
| public VkShaderModuleCreateInfo. | pCode(ByteBuffer value)
Sets the address of the specified |
| public long | |
| public VkShaderModuleCreateInfo. | |
| public VkShaderModuleCreateInfo. | pNext(VkShaderModuleValidationCacheCreateInfoEXT value)
Prepends the specified |
| protected VkShaderModuleCreateInfo. | |
| public int | |
| public VkShaderModuleCreateInfo. | |
| public VkShaderModuleCreateInfo. | sType$Default()
Sets the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkShaderModuleCreateInfo ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| codeSize | back to summary |
|---|---|
public long codeSize()
| |
| flags | back to summary |
|---|---|
public int flags()
| |
| flags | back to summary |
|---|---|
| public VkShaderModuleCreateInfo. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkShaderModuleCreateInfo getElementFactory() Implements abstract org.
| |
| pCode | back to summary |
|---|---|
public ByteBuffer pCode()
| |
| pCode | back to summary |
|---|---|
| public VkShaderModuleCreateInfo. Sets the address of the specified | |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkShaderModuleCreateInfo. Sets the specified value to the | |
| pNext | back to summary |
|---|---|
| public VkShaderModuleCreateInfo. Prepends the specified | |
| self | back to summary |
|---|---|
| protected VkShaderModuleCreateInfo. Implements abstract org.
| |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkShaderModuleCreateInfo. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkShaderModuleCreateInfo. Sets the | |