Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkDispatchGraphCountInfoAMDX

extends Struct<VkDispatchGraphCountInfoAMDX>
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 count parameters for execution graph dispatch.
Description

Whether infos is consumed as a device or host pointer is defined by the command this structure is used in.

See Also

VkDeviceOrHostAddressConstAMDX, CmdDispatchGraphAMDX, CmdDispatchGraphIndirectAMDX, CmdDispatchGraphIndirectCountAMDX

Layout


struct VkDispatchGraphCountInfoAMDX {
    uint32_t count;
    VkDeviceOrHostAddressConstAMDX infos;
    uint64_t stride;
}

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
COUNT

The struct member offsets.

public static final int
INFOS

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STRIDE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
VkDispatchGraphCountInfoAMDX(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static VkDispatchGraphCountInfoAMDX
calloc()

Returns a new VkDispatchGraphCountInfoAMDX instance allocated with memCalloc.

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

Returns a new VkDispatchGraphCountInfoAMDX.Buffer instance allocated with memCalloc.

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

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

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

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

public int
count()

the number of dispatches to perform.

public VkDispatchGraphCountInfoAMDX
count(int value)

Sets the specified value to the count field.

protected VkDispatchGraphCountInfoAMDX
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 VkDispatchGraphCountInfoAMDX
create()

Returns a new VkDispatchGraphCountInfoAMDX instance allocated with BufferUtils.

public static VkDispatchGraphCountInfoAMDX
create(long address)

Returns a new VkDispatchGraphCountInfoAMDX instance for the specified memory address.

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

Returns a new VkDispatchGraphCountInfoAMDX.Buffer instance allocated with BufferUtils.

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

Create a VkDispatchGraphCountInfoAMDX.Buffer instance at the specified memory.

public static VkDispatchGraphCountInfoAMDX
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public VkDeviceOrHostAddressConstAMDX
infos()

the device or host address of a flat array of VkDispatchGraphInfoAMDX structures

public VkDispatchGraphCountInfoAMDX
public VkDispatchGraphCountInfoAMDX
infos(Consumer<VkDeviceOrHostAddressConstAMDX> consumer)

Passes the infos field to the specified Consumer.

public static VkDispatchGraphCountInfoAMDX
malloc()

Returns a new VkDispatchGraphCountInfoAMDX instance allocated with memAlloc.

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

Returns a new VkDispatchGraphCountInfoAMDX.Buffer instance allocated with memAlloc.

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

Returns a new VkDispatchGraphCountInfoAMDX instance allocated on the specified MemoryStack.

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

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

public static int
ncount(long struct)

Unsafe version of count.

public static void
ncount(long struct, int value)

Unsafe version of count.

public static VkDeviceOrHostAddressConstAMDX
ninfos(long struct)

Unsafe version of infos.

public static void
ninfos(long struct, VkDeviceOrHostAddressConstAMDX value)

Unsafe version of infos.

public static long
nstride(long struct)

Unsafe version of stride.

public static void
nstride(long struct, long value)

Unsafe version of stride.

public VkDispatchGraphCountInfoAMDX
set(int count, VkDeviceOrHostAddressConstAMDX infos, long stride)

Initializes this struct with the specified values.

public VkDispatchGraphCountInfoAMDX

Returns:

this struct
set
(VkDispatchGraphCountInfoAMDX
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 long
stride()

the byte stride between successive VkDispatchGraphInfoAMDX structures in infos

public VkDispatchGraphCountInfoAMDX
stride(long value)

Sets the specified value to the stride field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

COUNTback to summary
public static final int COUNT

The struct member offsets.

INFOSback to summary
public static final int INFOS

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

STRIDEback to summary
public static final int STRIDE

The struct member offsets.

Constructor Detail

VkDispatchGraphCountInfoAMDXback to summary
protected VkDispatchGraphCountInfoAMDX(long address, ByteBuffer container)
VkDispatchGraphCountInfoAMDXback to summary
public VkDispatchGraphCountInfoAMDX(ByteBuffer container)

Creates a VkDispatchGraphCountInfoAMDX 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.

Method Detail

callocback to summary
public static VkDispatchGraphCountInfoAMDX calloc()

Returns a new VkDispatchGraphCountInfoAMDX instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static VkDispatchGraphCountInfoAMDX.Buffer calloc(int capacity)

Returns a new VkDispatchGraphCountInfoAMDX.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static VkDispatchGraphCountInfoAMDX calloc(MemoryStack stack)

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

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static VkDispatchGraphCountInfoAMDX.Buffer calloc(int capacity, MemoryStack stack)

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

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

countback to summary
public int count()

the number of dispatches to perform.

Annotations
@NativeType:uint32_t
countback to summary
public VkDispatchGraphCountInfoAMDX count(int value)

Sets the specified value to the count field.

createback to summary
protected VkDispatchGraphCountInfoAMDX create(long address, ByteBuffer container)

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

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static VkDispatchGraphCountInfoAMDX create()

Returns a new VkDispatchGraphCountInfoAMDX instance allocated with BufferUtils.

createback to summary
public static VkDispatchGraphCountInfoAMDX create(long address)

Returns a new VkDispatchGraphCountInfoAMDX instance for the specified memory address.

createback to summary
public static VkDispatchGraphCountInfoAMDX.Buffer create(int capacity)

Returns a new VkDispatchGraphCountInfoAMDX.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static VkDispatchGraphCountInfoAMDX.Buffer create(long address, int capacity)

Create a VkDispatchGraphCountInfoAMDX.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static VkDispatchGraphCountInfoAMDX createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static VkDispatchGraphCountInfoAMDX.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
infosback to summary
public VkDeviceOrHostAddressConstAMDX infos()

the device or host address of a flat array of VkDispatchGraphInfoAMDX structures

infosback to summary
public VkDispatchGraphCountInfoAMDX infos(VkDeviceOrHostAddressConstAMDX value)

Copies the specified VkDeviceOrHostAddressConstAMDX to the infos field.

infosback to summary
public VkDispatchGraphCountInfoAMDX infos(Consumer<VkDeviceOrHostAddressConstAMDX> consumer)

Passes the infos field to the specified Consumer.

mallocback to summary
public static VkDispatchGraphCountInfoAMDX malloc()

Returns a new VkDispatchGraphCountInfoAMDX instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static VkDispatchGraphCountInfoAMDX.Buffer malloc(int capacity)

Returns a new VkDispatchGraphCountInfoAMDX.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static VkDispatchGraphCountInfoAMDX malloc(MemoryStack stack)

Returns a new VkDispatchGraphCountInfoAMDX instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static VkDispatchGraphCountInfoAMDX.Buffer malloc(int capacity, MemoryStack stack)

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

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

ncountback to summary
public static int ncount(long struct)

Unsafe version of count.

ncountback to summary
public static void ncount(long struct, int value)

Unsafe version of count.

ninfosback to summary
public static VkDeviceOrHostAddressConstAMDX ninfos(long struct)

Unsafe version of infos.

ninfosback to summary
public static void ninfos(long struct, VkDeviceOrHostAddressConstAMDX value)

Unsafe version of infos.

nstrideback to summary
public static long nstride(long struct)

Unsafe version of stride.

nstrideback to summary
public static void nstride(long struct, long value)

Unsafe version of stride.

setback to summary
public VkDispatchGraphCountInfoAMDX set(int count, VkDeviceOrHostAddressConstAMDX infos, long stride)

Initializes this struct with the specified values.

setback to summary
public VkDispatchGraphCountInfoAMDX set(VkDispatchGraphCountInfoAMDX src)

Copies the specified struct data to this struct.

Parameters
src:VkDispatchGraphCountInfoAMDX

the source struct

Returns:VkDispatchGraphCountInfoAMDX

this struct

sizeofback to summary
public int sizeof()

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

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
strideback to summary
public long stride()

the byte stride between successive VkDispatchGraphInfoAMDX structures in infos

Annotations
@NativeType:uint64_t
strideback to summary
public VkDispatchGraphCountInfoAMDX stride(long value)

Sets the specified value to the stride field.

org.lwjgl.vulkan back to summary

public Class VkDispatchGraphCountInfoAMDX.Buffer

extends StructBuffer<VkDispatchGraphCountInfoAMDX, VkDispatchGraphCountInfoAMDX.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of VkDispatchGraphCountInfoAMDX structs.

Field Summary

Modifier and TypeField and Description
private static final VkDispatchGraphCountInfoAMDX

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new VkDispatchGraphCountInfoAMDX.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the VkDispatchGraphCountInfoAMDX#count field.
count
()

public VkDispatchGraphCountInfoAMDX.Buffer
count(int value)

Sets the specified value to the VkDispatchGraphCountInfoAMDX#count field.

protected VkDispatchGraphCountInfoAMDX
public VkDeviceOrHostAddressConstAMDX
public VkDispatchGraphCountInfoAMDX.Buffer
public VkDispatchGraphCountInfoAMDX.Buffer
protected VkDispatchGraphCountInfoAMDX.Buffer
public long

Returns:

the value of the VkDispatchGraphCountInfoAMDX#stride field.
stride
()

public VkDispatchGraphCountInfoAMDX.Buffer
stride(long value)

Sets the specified value to the VkDispatchGraphCountInfoAMDX#stride field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final VkDispatchGraphCountInfoAMDX ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new VkDispatchGraphCountInfoAMDX.Buffer instance backed by the specified container.

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 VkDispatchGraphCountInfoAMDX#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

countback to summary
public int count()
Returns:int

the value of the VkDispatchGraphCountInfoAMDX#count field.

Annotations
@NativeType:uint32_t
countback to summary
public VkDispatchGraphCountInfoAMDX.Buffer count(int value)

Sets the specified value to the VkDispatchGraphCountInfoAMDX#count field.

getElementFactoryback to summary
protected VkDispatchGraphCountInfoAMDX getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
infosback to summary
public VkDeviceOrHostAddressConstAMDX infos()
Returns:VkDeviceOrHostAddressConstAMDX

a VkDeviceOrHostAddressConstAMDX view of the VkDispatchGraphCountInfoAMDX#infos field.

infosback to summary
public VkDispatchGraphCountInfoAMDX.Buffer infos(VkDeviceOrHostAddressConstAMDX value)

Copies the specified VkDeviceOrHostAddressConstAMDX to the VkDispatchGraphCountInfoAMDX#infos field.

infosback to summary
public VkDispatchGraphCountInfoAMDX.Buffer infos(Consumer<VkDeviceOrHostAddressConstAMDX> consumer)

Passes the VkDispatchGraphCountInfoAMDX#infos field to the specified Consumer.

selfback to summary
protected VkDispatchGraphCountInfoAMDX.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
strideback to summary
public long stride()
Returns:long

the value of the VkDispatchGraphCountInfoAMDX#stride field.

Annotations
@NativeType:uint64_t
strideback to summary
public VkDispatchGraphCountInfoAMDX.Buffer stride(long value)

Sets the specified value to the VkDispatchGraphCountInfoAMDX#stride field.