Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkComputePipelineCreateInfo

extends Struct<VkComputePipelineCreateInfo>
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 compute pipeline.
Description

The parameters basePipelineHandle and basePipelineIndex are described in more detail in Pipeline Derivatives.

If a VkPipelineCreateFlags2CreateInfoKHR structure is present in the pNext chain, VkPipelineCreateFlags2CreateInfoKHR::flags from that structure is used instead of flags from this structure.

Valid Usage
Valid Usage (Implicit)
See Also

VkPipelineShaderStageCreateInfo, CreateComputePipelines, GetPipelineIndirectMemoryRequirementsNV

Layout


struct VkComputePipelineCreateInfo {
    VkStructureType sType;
    void const * pNext;
    VkPipelineCreateFlags flags;
    VkPipelineShaderStageCreateInfo stage;
    VkPipelineLayout layout;
    VkPipeline basePipelineHandle;
    int32_t basePipelineIndex;
}

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
BASEPIPELINEHANDLE

The struct member offsets.

public static final int
BASEPIPELINEINDEX

The struct member offsets.

public static final int
FLAGS

The struct member offsets.

public static final int
LAYOUT

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
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
VkComputePipelineCreateInfo(long address, ByteBuffer container)

public
VkComputePipelineCreateInfo(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public long
basePipelineHandle()

a pipeline to derive from.

public VkComputePipelineCreateInfo
basePipelineHandle(long value)

Sets the specified value to the basePipelineHandle field.

public int
basePipelineIndex()

an index into the pCreateInfos parameter to use as a pipeline to derive from.

public VkComputePipelineCreateInfo
basePipelineIndex(int value)

Sets the specified value to the basePipelineIndex field.

public static VkComputePipelineCreateInfo
calloc()

Returns a new VkComputePipelineCreateInfo instance allocated with memCalloc.

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

Returns a new VkComputePipelineCreateInfo.Buffer instance allocated with memCalloc.

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

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

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

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

public static VkComputePipelineCreateInfo
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkComputePipelineCreateInfo
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkComputePipelineCreateInfo.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkComputePipelineCreateInfo.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected VkComputePipelineCreateInfo
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 VkComputePipelineCreateInfo
create()

Returns a new VkComputePipelineCreateInfo instance allocated with BufferUtils.

public static VkComputePipelineCreateInfo
create(long address)

Returns a new VkComputePipelineCreateInfo instance for the specified memory address.

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

Returns a new VkComputePipelineCreateInfo.Buffer instance allocated with BufferUtils.

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

Create a VkComputePipelineCreateInfo.Buffer instance at the specified memory.

public static VkComputePipelineCreateInfo
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public int
flags()

a bitmask of VkPipelineCreateFlagBits specifying how the pipeline will be generated.

public VkComputePipelineCreateInfo
flags(int value)

Sets the specified value to the flags field.

public long
layout()

the description of binding locations used by both the pipeline and descriptor sets used with the pipeline.

public VkComputePipelineCreateInfo
layout(long value)

Sets the specified value to the layout field.

public static VkComputePipelineCreateInfo
malloc()

Returns a new VkComputePipelineCreateInfo instance allocated with memAlloc.

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

Returns a new VkComputePipelineCreateInfo.Buffer instance allocated with memAlloc.

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

Returns a new VkComputePipelineCreateInfo instance allocated on the specified MemoryStack.

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

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

public static VkComputePipelineCreateInfo
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkComputePipelineCreateInfo
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkComputePipelineCreateInfo.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkComputePipelineCreateInfo.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static long
nbasePipelineHandle(long struct)

Unsafe version of basePipelineHandle.

public static void
nbasePipelineHandle(long struct, long value)

Unsafe version of basePipelineHandle.

public static int
nbasePipelineIndex(long struct)

Unsafe version of basePipelineIndex.

public static void
nbasePipelineIndex(long struct, int value)

Unsafe version of basePipelineIndex.

public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static long
nlayout(long struct)

Unsafe version of layout.

public static void
nlayout(long struct, long value)

Unsafe version of layout.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static VkPipelineShaderStageCreateInfo
nstage(long struct)

Unsafe version of stage.

public static void
nstage(long struct, VkPipelineShaderStageCreateInfo 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 long
pNext()

NULL or a pointer to a structure extending this structure.

public VkComputePipelineCreateInfo
pNext(long value)

Sets the specified value to the pNext field.

public VkComputePipelineCreateInfo
pNext(VkPipelineCompilerControlCreateInfoAMD value)

Prepends the specified VkPipelineCompilerControlCreateInfoAMD value to the pNext chain.

public VkComputePipelineCreateInfo
pNext(VkPipelineCreateFlags2CreateInfoKHR value)

Prepends the specified VkPipelineCreateFlags2CreateInfoKHR value to the pNext chain.

public VkComputePipelineCreateInfo
pNext(VkPipelineCreationFeedbackCreateInfo value)

Prepends the specified VkPipelineCreationFeedbackCreateInfo value to the pNext chain.

public VkComputePipelineCreateInfo
pNext(VkPipelineCreationFeedbackCreateInfoEXT value)

Prepends the specified VkPipelineCreationFeedbackCreateInfoEXT value to the pNext chain.

public VkComputePipelineCreateInfo
pNext(VkPipelineRobustnessCreateInfoEXT value)

Prepends the specified VkPipelineRobustnessCreateInfoEXT value to the pNext chain.

public VkComputePipelineCreateInfo
pNext(VkSubpassShadingPipelineCreateInfoHUAWEI value)

Prepends the specified VkSubpassShadingPipelineCreateInfoHUAWEI value to the pNext chain.

public VkComputePipelineCreateInfo
set(int sType, long pNext, int flags, VkPipelineShaderStageCreateInfo stage, long layout, long basePipelineHandle, int basePipelineIndex)

Initializes this struct with the specified values.

public VkComputePipelineCreateInfo

Returns:

this struct
set
(VkComputePipelineCreateInfo
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

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

Returns sizeof(struct).
public VkPipelineShaderStageCreateInfo
stage()

a VkPipelineShaderStageCreateInfo structure describing the compute shader.

public VkComputePipelineCreateInfo
public VkComputePipelineCreateInfo
stage(Consumer<VkPipelineShaderStageCreateInfo> consumer)

Passes the stage field to the specified Consumer.

public int
sType()

a VkStructureType value identifying this structure.

public VkComputePipelineCreateInfo
sType(int value)

Sets the specified value to the sType field.

public VkComputePipelineCreateInfo
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