Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkShaderCreateInfoEXT

extends Struct<VkShaderCreateInfoEXT>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying parameters of a newly created shader.
Valid Usage
Valid Usage (Implicit)
See Also

VkPushConstantRange, VkSpecializationInfo, CreateShadersEXT

Layout


struct VkShaderCreateInfoEXT {
    VkStructureType sType;
    void const * pNext;
    VkShaderCreateFlagsEXT flags;
    VkShaderStageFlagBits stage;
    VkShaderStageFlags nextStage;
    VkShaderCodeTypeEXT codeType;
    size_t codeSize;
    void const * pCode;
    char const * pName;
    uint32_t setLayoutCount;
    VkDescriptorSetLayout const * pSetLayouts;
    uint32_t pushConstantRangeCount;
    VkPushConstantRange const * pPushConstantRanges;
    VkSpecializationInfo const * pSpecializationInfo;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField 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
CODETYPE

The struct member offsets.

public static final int
FLAGS

The struct member offsets.

public static final int
NEXTSTAGE

The struct member offsets.

public static final int
PCODE

The struct member offsets.

public static final int
PNAME

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
PPUSHCONSTANTRANGES

The struct member offsets.

public static final int
PSETLAYOUTS

The struct member offsets.

public static final int
PSPECIALIZATIONINFO

The struct member offsets.

public static final int
PUSHCONSTANTRANGECOUNT

The struct member offsets.

public static final int
SETLAYOUTCOUNT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STAGE

The struct member offsets.

public static final int
STYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VkShaderCreateInfoEXT(long address, ByteBuffer container)

public
VkShaderCreateInfoEXT(ByteBuffer container)

Creates a VkShaderCreateInfoEXT instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkShaderCreateInfoEXT
calloc()

Returns a new VkShaderCreateInfoEXT instance allocated with memCalloc.

public static VkShaderCreateInfoEXT.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkShaderCreateInfoEXT.Buffer instance allocated with memCalloc.

public static VkShaderCreateInfoEXT
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkShaderCreateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkShaderCreateInfoEXT.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkShaderCreateInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public long
codeSize()

the size in bytes of the shader code pointed to be pCode.

public int
codeType()

a VkShaderCodeTypeEXT value specifying the type of the shader code pointed to be pCode.

public VkShaderCreateInfoEXT
codeType(int value)

Sets the specified value to the codeType field.

protected VkShaderCreateInfoEXT
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkShaderCreateInfoEXT
create()

Returns a new VkShaderCreateInfoEXT instance allocated with BufferUtils.

public static VkShaderCreateInfoEXT
create(long address)

Returns a new VkShaderCreateInfoEXT instance for the specified memory address.

public static VkShaderCreateInfoEXT.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkShaderCreateInfoEXT.Buffer instance allocated with BufferUtils.

public static VkShaderCreateInfoEXT.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkShaderCreateInfoEXT.Buffer instance at the specified memory.

public static VkShaderCreateInfoEXT
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkShaderCreateInfoEXT.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
flags()

a bitmask of VkShaderCreateFlagBitsEXT describing additional parameters of the shader.

public VkShaderCreateInfoEXT
flags(int value)

Sets the specified value to the flags field.

public static VkShaderCreateInfoEXT
malloc()

Returns a new VkShaderCreateInfoEXT instance allocated with memAlloc.

public static VkShaderCreateInfoEXT.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkShaderCreateInfoEXT.Buffer instance allocated with memAlloc.

public static VkShaderCreateInfoEXT
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkShaderCreateInfoEXT instance allocated on the specified MemoryStack.

public static VkShaderCreateInfoEXT.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkShaderCreateInfoEXT.Buffer instance allocated on the specified MemoryStack.

public static long
ncodeSize(long struct)

Unsafe version of codeSize.

public static void
ncodeSize(long struct, long value)

Sets the specified value to the codeSize field of the specified struct.

public static int
ncodeType(long struct)

Unsafe version of codeType.

public static void
ncodeType(long struct, int value)

Unsafe version of codeType.

public int
nextStage()

a bitmask of VkShaderStageFlagBits specifying zero or stages which may be used as a logically next bound stage when drawing with the shader bound.

public VkShaderCreateInfoEXT
nextStage(int value)

Sets the specified value to the nextStage field.

public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static int
nnextStage(long struct)

Unsafe version of nextStage.

public static void
nnextStage(long struct, int value)

Unsafe version of nextStage.

public static ByteBuffer
npCode(long struct)

Unsafe version of pCode.

public static void
npCode(long struct, ByteBuffer value)

Unsafe version of pCode.

public static ByteBuffer
npName(long struct)

Unsafe version of pName.

public static void
npName(long struct, ByteBuffer value)

Unsafe version of pName.

public static String
npNameString(long struct)

Unsafe version of pNameString.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static VkPushConstantRange.Buffer
npPushConstantRanges(long struct)

Unsafe version of pPushConstantRanges.

public static void
public static LongBuffer
npSetLayouts(long struct)

Unsafe version of pSetLayouts.

public static void
npSetLayouts(long struct, LongBuffer value)

Unsafe version of pSetLayouts.

public static VkSpecializationInfo
npSpecializationInfo(long struct)

Unsafe version of pSpecializationInfo.

public static void
npSpecializationInfo(long struct, VkSpecializationInfo value)

Unsafe version of pSpecializationInfo.

public static int
npushConstantRangeCount(long struct)

Unsafe version of pushConstantRangeCount.

public static void
npushConstantRangeCount(long struct, int value)

Sets the specified value to the pushConstantRangeCount field of the specified struct.

public static int
nsetLayoutCount(long struct)

Unsafe version of setLayoutCount.

public static void
nsetLayoutCount(long struct, int value)

Sets the specified value to the setLayoutCount field of the specified struct.

public static int
nstage(long struct)

Unsafe version of stage.

public static void
nstage(long struct, int value)

Unsafe version of stage.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public ByteBuffer
pCode()

a pointer to the shader code to use to create the shader.

public VkShaderCreateInfoEXT
pCode(ByteBuffer value)

Sets the address of the specified ByteBuffer to the pCode field.

public ByteBuffer
pName()

a pointer to a null-terminated UTF-8 string specifying the entry point name of the shader for this stage.

public VkShaderCreateInfoEXT
pName(ByteBuffer value)

Sets the address of the specified encoded string to the pName field.

public String
pNameString()

a pointer to a null-terminated UTF-8 string specifying the entry point name of the shader for this stage.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkShaderCreateInfoEXT
pNext(long value)

Sets the specified value to the pNext field.

public VkShaderCreateInfoEXT
public VkShaderCreateInfoEXT
public VkShaderCreateInfoEXT
pNext(VkShaderRequiredSubgroupSizeCreateInfoEXT value)

Prepends the specified VkShaderRequiredSubgroupSizeCreateInfoEXT value to the pNext chain.

public VkPushConstantRange.Buffer
pPushConstantRanges()

a pointer to an array of VkPushConstantRange structures used by the shader stage.

public VkShaderCreateInfoEXT
public LongBuffer
pSetLayouts()

a pointer to an array of VkDescriptorSetLayout objects used by the shader stage.

public VkShaderCreateInfoEXT
pSetLayouts(LongBuffer value)

Sets the address of the specified LongBuffer to the pSetLayouts field.

public VkSpecializationInfo
pSpecializationInfo()

a pointer to a VkSpecializationInfo structure, as described in Specialization Constants, or NULL.

public VkShaderCreateInfoEXT
pSpecializationInfo(VkSpecializationInfo value)

Sets the address of the specified VkSpecializationInfo to the pSpecializationInfo field.

public int
pushConstantRangeCount()

the number of push constant ranges pointed to by pPushConstantRanges.

public VkShaderCreateInfoEXT
pushConstantRangeCount(int value)

Sets the specified value to the pushConstantRangeCount field.

public VkShaderCreateInfoEXT
set(int sType, long pNext, int flags, int stage, int nextStage, int codeType, ByteBuffer pCode, ByteBuffer pName, int setLayoutCount, LongBuffer pSetLayouts, int pushConstantRangeCount, VkPushConstantRange.Buffer pPushConstantRanges, VkSpecializationInfo pSpecializationInfo)

Initializes this struct with the specified values.

public VkShaderCreateInfoEXT

Returns:

this struct
set
(VkShaderCreateInfoEXT
the source struct
src
)

Copies the specified struct data to this struct.

public int
setLayoutCount()

the number of descriptor set layouts pointed to by pSetLayouts.

public VkShaderCreateInfoEXT
setLayoutCount(int value)

Sets the specified value to the setLayoutCount field.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
stage()

a VkShaderStageFlagBits value specifying a single shader stage.

public VkShaderCreateInfoEXT
stage(int value)

Sets the specified value to the stage field.

public int
sType()

a VkStructureType value identifying this structure.

public VkShaderCreateInfoEXT
sType(int value)

Sets the specified value to the sType field.

public VkShaderCreateInfoEXT
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate