org.lwjgl.vulkan.VkPhysicalDeviceShaderAtomicFloatFeaturesEXT Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-vulkan Show documentation
Show all versions of lwjgl-vulkan Show documentation
A new generation graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan;
import javax.annotation.*;
import java.nio.*;
import org.lwjgl.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.MemoryStack.*;
/**
* Structure describing features supported by VK_EXT_shader_atomic_float.
*
* Description
*
* If the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT} structure is included in the {@code pNext} chain of the {@link VkPhysicalDeviceFeatures2} structure passed to {@link VK11#vkGetPhysicalDeviceFeatures2 GetPhysicalDeviceFeatures2}, it is filled in to indicate whether each corresponding feature is supported. {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT} can also be used in the {@code pNext} chain of {@link VkDeviceCreateInfo} to selectively enable these features.
*
* Valid Usage (Implicit)
*
*
* - {@code sType} must be {@link EXTShaderAtomicFloat#VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT}
*
*
* Layout
*
*
* struct VkPhysicalDeviceShaderAtomicFloatFeaturesEXT {
* VkStructureType {@link #sType};
* void * {@link #pNext};
* VkBool32 {@link #shaderBufferFloat32Atomics};
* VkBool32 {@link #shaderBufferFloat32AtomicAdd};
* VkBool32 {@link #shaderBufferFloat64Atomics};
* VkBool32 {@link #shaderBufferFloat64AtomicAdd};
* VkBool32 {@link #shaderSharedFloat32Atomics};
* VkBool32 {@link #shaderSharedFloat32AtomicAdd};
* VkBool32 {@link #shaderSharedFloat64Atomics};
* VkBool32 {@link #shaderSharedFloat64AtomicAdd};
* VkBool32 {@link #shaderImageFloat32Atomics};
* VkBool32 {@link #shaderImageFloat32AtomicAdd};
* VkBool32 {@link #sparseImageFloat32Atomics};
* VkBool32 {@link #sparseImageFloat32AtomicAdd};
* }
*/
public class VkPhysicalDeviceShaderAtomicFloatFeaturesEXT extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
/** The struct alignment in bytes. */
public static final int ALIGNOF;
/** The struct member offsets. */
public static final int
STYPE,
PNEXT,
SHADERBUFFERFLOAT32ATOMICS,
SHADERBUFFERFLOAT32ATOMICADD,
SHADERBUFFERFLOAT64ATOMICS,
SHADERBUFFERFLOAT64ATOMICADD,
SHADERSHAREDFLOAT32ATOMICS,
SHADERSHAREDFLOAT32ATOMICADD,
SHADERSHAREDFLOAT64ATOMICS,
SHADERSHAREDFLOAT64ATOMICADD,
SHADERIMAGEFLOAT32ATOMICS,
SHADERIMAGEFLOAT32ATOMICADD,
SPARSEIMAGEFLOAT32ATOMICS,
SPARSEIMAGEFLOAT32ATOMICADD;
static {
Layout layout = __struct(
__member(4),
__member(POINTER_SIZE),
__member(4),
__member(4),
__member(4),
__member(4),
__member(4),
__member(4),
__member(4),
__member(4),
__member(4),
__member(4),
__member(4),
__member(4)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
STYPE = layout.offsetof(0);
PNEXT = layout.offsetof(1);
SHADERBUFFERFLOAT32ATOMICS = layout.offsetof(2);
SHADERBUFFERFLOAT32ATOMICADD = layout.offsetof(3);
SHADERBUFFERFLOAT64ATOMICS = layout.offsetof(4);
SHADERBUFFERFLOAT64ATOMICADD = layout.offsetof(5);
SHADERSHAREDFLOAT32ATOMICS = layout.offsetof(6);
SHADERSHAREDFLOAT32ATOMICADD = layout.offsetof(7);
SHADERSHAREDFLOAT64ATOMICS = layout.offsetof(8);
SHADERSHAREDFLOAT64ATOMICADD = layout.offsetof(9);
SHADERIMAGEFLOAT32ATOMICS = layout.offsetof(10);
SHADERIMAGEFLOAT32ATOMICADD = layout.offsetof(11);
SPARSEIMAGEFLOAT32ATOMICS = layout.offsetof(12);
SPARSEIMAGEFLOAT32ATOMICADD = layout.offsetof(13);
}
/**
* Creates a {@code VkPhysicalDeviceShaderAtomicFloatFeaturesEXT} instance at the current position of the specified {@link 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 VkPhysicalDeviceShaderAtomicFloatFeaturesEXT(ByteBuffer container) {
super(memAddress(container), __checkContainer(container, SIZEOF));
}
@Override
public int sizeof() { return SIZEOF; }
/** the type of this structure. */
@NativeType("VkStructureType")
public int sType() { return nsType(address()); }
/** {@code NULL} or a pointer to a structure extending this structure. */
@NativeType("void *")
public long pNext() { return npNext(address()); }
/** indicates whether shaders can perform 32-bit floating-point load, store and exchange atomic operations on storage buffers. */
@NativeType("VkBool32")
public boolean shaderBufferFloat32Atomics() { return nshaderBufferFloat32Atomics(address()) != 0; }
/** indicates whether shaders can perform 32-bit floating-point add atomic operations on storage buffers. */
@NativeType("VkBool32")
public boolean shaderBufferFloat32AtomicAdd() { return nshaderBufferFloat32AtomicAdd(address()) != 0; }
/** indicates whether shaders can perform 64-bit floating-point load, store and exchange atomic operations on storage buffers. */
@NativeType("VkBool32")
public boolean shaderBufferFloat64Atomics() { return nshaderBufferFloat64Atomics(address()) != 0; }
/** indicates whether shaders can perform 64-bit floating-point add atomic operations on storage buffers. */
@NativeType("VkBool32")
public boolean shaderBufferFloat64AtomicAdd() { return nshaderBufferFloat64AtomicAdd(address()) != 0; }
/** indicates whether shaders can perform 32-bit floating-point load, store and exchange atomic operations on shared memory. */
@NativeType("VkBool32")
public boolean shaderSharedFloat32Atomics() { return nshaderSharedFloat32Atomics(address()) != 0; }
/** indicates whether shaders can perform 32-bit floating-point add atomic operations on shared memory. */
@NativeType("VkBool32")
public boolean shaderSharedFloat32AtomicAdd() { return nshaderSharedFloat32AtomicAdd(address()) != 0; }
/** indicates whether shaders can perform 64-bit floating-point load, store and exchange atomic operations on shared memory. */
@NativeType("VkBool32")
public boolean shaderSharedFloat64Atomics() { return nshaderSharedFloat64Atomics(address()) != 0; }
/** indicates whether shaders can perform 64-bit floating-point add atomic operations on shared memory. */
@NativeType("VkBool32")
public boolean shaderSharedFloat64AtomicAdd() { return nshaderSharedFloat64AtomicAdd(address()) != 0; }
/** indicates whether shaders can perform 32-bit floating-point load, store and exchange atomic image operations. */
@NativeType("VkBool32")
public boolean shaderImageFloat32Atomics() { return nshaderImageFloat32Atomics(address()) != 0; }
/** indicates whether shaders can perform 32-bit floating-point add atomic image operations. */
@NativeType("VkBool32")
public boolean shaderImageFloat32AtomicAdd() { return nshaderImageFloat32AtomicAdd(address()) != 0; }
/** indicates whether 32-bit floating-point load, store and exchange atomic operations can be used on sparse images. */
@NativeType("VkBool32")
public boolean sparseImageFloat32Atomics() { return nsparseImageFloat32Atomics(address()) != 0; }
/** indicates whether 32-bit floating-point add atomic operations can be used on sparse images. */
@NativeType("VkBool32")
public boolean sparseImageFloat32AtomicAdd() { return nsparseImageFloat32AtomicAdd(address()) != 0; }
/** Sets the specified value to the {@link #sType} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT sType(@NativeType("VkStructureType") int value) { nsType(address(), value); return this; }
/** Sets the {@link EXTShaderAtomicFloat#VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT} value to the {@link #sType} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT sType$Default() { return sType(EXTShaderAtomicFloat.VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT); }
/** Sets the specified value to the {@link #pNext} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT pNext(@NativeType("void *") long value) { npNext(address(), value); return this; }
/** Sets the specified value to the {@link #shaderBufferFloat32Atomics} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT shaderBufferFloat32Atomics(@NativeType("VkBool32") boolean value) { nshaderBufferFloat32Atomics(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link #shaderBufferFloat32AtomicAdd} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT shaderBufferFloat32AtomicAdd(@NativeType("VkBool32") boolean value) { nshaderBufferFloat32AtomicAdd(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link #shaderBufferFloat64Atomics} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT shaderBufferFloat64Atomics(@NativeType("VkBool32") boolean value) { nshaderBufferFloat64Atomics(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link #shaderBufferFloat64AtomicAdd} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT shaderBufferFloat64AtomicAdd(@NativeType("VkBool32") boolean value) { nshaderBufferFloat64AtomicAdd(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link #shaderSharedFloat32Atomics} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT shaderSharedFloat32Atomics(@NativeType("VkBool32") boolean value) { nshaderSharedFloat32Atomics(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link #shaderSharedFloat32AtomicAdd} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT shaderSharedFloat32AtomicAdd(@NativeType("VkBool32") boolean value) { nshaderSharedFloat32AtomicAdd(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link #shaderSharedFloat64Atomics} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT shaderSharedFloat64Atomics(@NativeType("VkBool32") boolean value) { nshaderSharedFloat64Atomics(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link #shaderSharedFloat64AtomicAdd} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT shaderSharedFloat64AtomicAdd(@NativeType("VkBool32") boolean value) { nshaderSharedFloat64AtomicAdd(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link #shaderImageFloat32Atomics} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT shaderImageFloat32Atomics(@NativeType("VkBool32") boolean value) { nshaderImageFloat32Atomics(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link #shaderImageFloat32AtomicAdd} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT shaderImageFloat32AtomicAdd(@NativeType("VkBool32") boolean value) { nshaderImageFloat32AtomicAdd(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link #sparseImageFloat32Atomics} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT sparseImageFloat32Atomics(@NativeType("VkBool32") boolean value) { nsparseImageFloat32Atomics(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link #sparseImageFloat32AtomicAdd} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT sparseImageFloat32AtomicAdd(@NativeType("VkBool32") boolean value) { nsparseImageFloat32AtomicAdd(address(), value ? 1 : 0); return this; }
/** Initializes this struct with the specified values. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT set(
int sType,
long pNext,
boolean shaderBufferFloat32Atomics,
boolean shaderBufferFloat32AtomicAdd,
boolean shaderBufferFloat64Atomics,
boolean shaderBufferFloat64AtomicAdd,
boolean shaderSharedFloat32Atomics,
boolean shaderSharedFloat32AtomicAdd,
boolean shaderSharedFloat64Atomics,
boolean shaderSharedFloat64AtomicAdd,
boolean shaderImageFloat32Atomics,
boolean shaderImageFloat32AtomicAdd,
boolean sparseImageFloat32Atomics,
boolean sparseImageFloat32AtomicAdd
) {
sType(sType);
pNext(pNext);
shaderBufferFloat32Atomics(shaderBufferFloat32Atomics);
shaderBufferFloat32AtomicAdd(shaderBufferFloat32AtomicAdd);
shaderBufferFloat64Atomics(shaderBufferFloat64Atomics);
shaderBufferFloat64AtomicAdd(shaderBufferFloat64AtomicAdd);
shaderSharedFloat32Atomics(shaderSharedFloat32Atomics);
shaderSharedFloat32AtomicAdd(shaderSharedFloat32AtomicAdd);
shaderSharedFloat64Atomics(shaderSharedFloat64Atomics);
shaderSharedFloat64AtomicAdd(shaderSharedFloat64AtomicAdd);
shaderImageFloat32Atomics(shaderImageFloat32Atomics);
shaderImageFloat32AtomicAdd(shaderImageFloat32AtomicAdd);
sparseImageFloat32Atomics(sparseImageFloat32Atomics);
sparseImageFloat32AtomicAdd(sparseImageFloat32AtomicAdd);
return this;
}
/**
* Copies the specified struct data to this struct.
*
* @param src the source struct
*
* @return this struct
*/
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT set(VkPhysicalDeviceShaderAtomicFloatFeaturesEXT src) {
memCopy(src.address(), address(), SIZEOF);
return this;
}
// -----------------------------------
/** Returns a new {@code VkPhysicalDeviceShaderAtomicFloatFeaturesEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static VkPhysicalDeviceShaderAtomicFloatFeaturesEXT malloc() {
return wrap(VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code VkPhysicalDeviceShaderAtomicFloatFeaturesEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static VkPhysicalDeviceShaderAtomicFloatFeaturesEXT calloc() {
return wrap(VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code VkPhysicalDeviceShaderAtomicFloatFeaturesEXT} instance allocated with {@link BufferUtils}. */
public static VkPhysicalDeviceShaderAtomicFloatFeaturesEXT create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
return wrap(VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.class, memAddress(container), container);
}
/** Returns a new {@code VkPhysicalDeviceShaderAtomicFloatFeaturesEXT} instance for the specified memory address. */
public static VkPhysicalDeviceShaderAtomicFloatFeaturesEXT create(long address) {
return wrap(VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static VkPhysicalDeviceShaderAtomicFloatFeaturesEXT createSafe(long address) {
return address == NULL ? null : wrap(VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.class, address);
}
/**
* Returns a new {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed.
*
* @param capacity the buffer capacity
*/
public static VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer malloc(int capacity) {
return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
* Returns a new {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed.
*
* @param capacity the buffer capacity
*/
public static VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer calloc(int capacity) {
return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
* Returns a new {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer} instance allocated with {@link BufferUtils}.
*
* @param capacity the buffer capacity
*/
public static VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
* Create a {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer} instance at the specified memory.
*
* @param address the memory address
* @param capacity the buffer capacity
*/
public static VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer create(long address, int capacity) {
return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer createSafe(long address, int capacity) {
return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
* Returns a new {@code VkPhysicalDeviceShaderAtomicFloatFeaturesEXT} instance allocated on the specified {@link MemoryStack}.
*
* @param stack the stack from which to allocate
*/
public static VkPhysicalDeviceShaderAtomicFloatFeaturesEXT malloc(MemoryStack stack) {
return wrap(VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
* Returns a new {@code VkPhysicalDeviceShaderAtomicFloatFeaturesEXT} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero.
*
* @param stack the stack from which to allocate
*/
public static VkPhysicalDeviceShaderAtomicFloatFeaturesEXT calloc(MemoryStack stack) {
return wrap(VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
* Returns a new {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer} instance allocated on the specified {@link MemoryStack}.
*
* @param stack the stack from which to allocate
* @param capacity the buffer capacity
*/
public static VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer malloc(int capacity, MemoryStack stack) {
return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
* Returns a new {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero.
*
* @param stack the stack from which to allocate
* @param capacity the buffer capacity
*/
public static VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer calloc(int capacity, MemoryStack stack) {
return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
/** Unsafe version of {@link #sType}. */
public static int nsType(long struct) { return UNSAFE.getInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.STYPE); }
/** Unsafe version of {@link #pNext}. */
public static long npNext(long struct) { return memGetAddress(struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.PNEXT); }
/** Unsafe version of {@link #shaderBufferFloat32Atomics}. */
public static int nshaderBufferFloat32Atomics(long struct) { return UNSAFE.getInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERBUFFERFLOAT32ATOMICS); }
/** Unsafe version of {@link #shaderBufferFloat32AtomicAdd}. */
public static int nshaderBufferFloat32AtomicAdd(long struct) { return UNSAFE.getInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERBUFFERFLOAT32ATOMICADD); }
/** Unsafe version of {@link #shaderBufferFloat64Atomics}. */
public static int nshaderBufferFloat64Atomics(long struct) { return UNSAFE.getInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERBUFFERFLOAT64ATOMICS); }
/** Unsafe version of {@link #shaderBufferFloat64AtomicAdd}. */
public static int nshaderBufferFloat64AtomicAdd(long struct) { return UNSAFE.getInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERBUFFERFLOAT64ATOMICADD); }
/** Unsafe version of {@link #shaderSharedFloat32Atomics}. */
public static int nshaderSharedFloat32Atomics(long struct) { return UNSAFE.getInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERSHAREDFLOAT32ATOMICS); }
/** Unsafe version of {@link #shaderSharedFloat32AtomicAdd}. */
public static int nshaderSharedFloat32AtomicAdd(long struct) { return UNSAFE.getInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERSHAREDFLOAT32ATOMICADD); }
/** Unsafe version of {@link #shaderSharedFloat64Atomics}. */
public static int nshaderSharedFloat64Atomics(long struct) { return UNSAFE.getInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERSHAREDFLOAT64ATOMICS); }
/** Unsafe version of {@link #shaderSharedFloat64AtomicAdd}. */
public static int nshaderSharedFloat64AtomicAdd(long struct) { return UNSAFE.getInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERSHAREDFLOAT64ATOMICADD); }
/** Unsafe version of {@link #shaderImageFloat32Atomics}. */
public static int nshaderImageFloat32Atomics(long struct) { return UNSAFE.getInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERIMAGEFLOAT32ATOMICS); }
/** Unsafe version of {@link #shaderImageFloat32AtomicAdd}. */
public static int nshaderImageFloat32AtomicAdd(long struct) { return UNSAFE.getInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERIMAGEFLOAT32ATOMICADD); }
/** Unsafe version of {@link #sparseImageFloat32Atomics}. */
public static int nsparseImageFloat32Atomics(long struct) { return UNSAFE.getInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SPARSEIMAGEFLOAT32ATOMICS); }
/** Unsafe version of {@link #sparseImageFloat32AtomicAdd}. */
public static int nsparseImageFloat32AtomicAdd(long struct) { return UNSAFE.getInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SPARSEIMAGEFLOAT32ATOMICADD); }
/** Unsafe version of {@link #sType(int) sType}. */
public static void nsType(long struct, int value) { UNSAFE.putInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.STYPE, value); }
/** Unsafe version of {@link #pNext(long) pNext}. */
public static void npNext(long struct, long value) { memPutAddress(struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.PNEXT, value); }
/** Unsafe version of {@link #shaderBufferFloat32Atomics(boolean) shaderBufferFloat32Atomics}. */
public static void nshaderBufferFloat32Atomics(long struct, int value) { UNSAFE.putInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERBUFFERFLOAT32ATOMICS, value); }
/** Unsafe version of {@link #shaderBufferFloat32AtomicAdd(boolean) shaderBufferFloat32AtomicAdd}. */
public static void nshaderBufferFloat32AtomicAdd(long struct, int value) { UNSAFE.putInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERBUFFERFLOAT32ATOMICADD, value); }
/** Unsafe version of {@link #shaderBufferFloat64Atomics(boolean) shaderBufferFloat64Atomics}. */
public static void nshaderBufferFloat64Atomics(long struct, int value) { UNSAFE.putInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERBUFFERFLOAT64ATOMICS, value); }
/** Unsafe version of {@link #shaderBufferFloat64AtomicAdd(boolean) shaderBufferFloat64AtomicAdd}. */
public static void nshaderBufferFloat64AtomicAdd(long struct, int value) { UNSAFE.putInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERBUFFERFLOAT64ATOMICADD, value); }
/** Unsafe version of {@link #shaderSharedFloat32Atomics(boolean) shaderSharedFloat32Atomics}. */
public static void nshaderSharedFloat32Atomics(long struct, int value) { UNSAFE.putInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERSHAREDFLOAT32ATOMICS, value); }
/** Unsafe version of {@link #shaderSharedFloat32AtomicAdd(boolean) shaderSharedFloat32AtomicAdd}. */
public static void nshaderSharedFloat32AtomicAdd(long struct, int value) { UNSAFE.putInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERSHAREDFLOAT32ATOMICADD, value); }
/** Unsafe version of {@link #shaderSharedFloat64Atomics(boolean) shaderSharedFloat64Atomics}. */
public static void nshaderSharedFloat64Atomics(long struct, int value) { UNSAFE.putInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERSHAREDFLOAT64ATOMICS, value); }
/** Unsafe version of {@link #shaderSharedFloat64AtomicAdd(boolean) shaderSharedFloat64AtomicAdd}. */
public static void nshaderSharedFloat64AtomicAdd(long struct, int value) { UNSAFE.putInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERSHAREDFLOAT64ATOMICADD, value); }
/** Unsafe version of {@link #shaderImageFloat32Atomics(boolean) shaderImageFloat32Atomics}. */
public static void nshaderImageFloat32Atomics(long struct, int value) { UNSAFE.putInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERIMAGEFLOAT32ATOMICS, value); }
/** Unsafe version of {@link #shaderImageFloat32AtomicAdd(boolean) shaderImageFloat32AtomicAdd}. */
public static void nshaderImageFloat32AtomicAdd(long struct, int value) { UNSAFE.putInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SHADERIMAGEFLOAT32ATOMICADD, value); }
/** Unsafe version of {@link #sparseImageFloat32Atomics(boolean) sparseImageFloat32Atomics}. */
public static void nsparseImageFloat32Atomics(long struct, int value) { UNSAFE.putInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SPARSEIMAGEFLOAT32ATOMICS, value); }
/** Unsafe version of {@link #sparseImageFloat32AtomicAdd(boolean) sparseImageFloat32AtomicAdd}. */
public static void nsparseImageFloat32AtomicAdd(long struct, int value) { UNSAFE.putInt(null, struct + VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.SPARSEIMAGEFLOAT32ATOMICADD, value); }
// -----------------------------------
/** An array of {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
private static final VkPhysicalDeviceShaderAtomicFloatFeaturesEXT ELEMENT_FACTORY = VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.create(-1L);
/**
* Creates a new {@code VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.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 {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
public Buffer(ByteBuffer container) {
super(container, container.remaining() / SIZEOF);
}
public Buffer(long address, int cap) {
super(address, null, -1, 0, cap, cap);
}
Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) {
super(address, container, mark, pos, lim, cap);
}
@Override
protected Buffer self() {
return this;
}
@Override
protected VkPhysicalDeviceShaderAtomicFloatFeaturesEXT getElementFactory() {
return ELEMENT_FACTORY;
}
/** @return the value of the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#sType} field. */
@NativeType("VkStructureType")
public int sType() { return VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nsType(address()); }
/** @return the value of the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#pNext} field. */
@NativeType("void *")
public long pNext() { return VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.npNext(address()); }
/** @return the value of the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderBufferFloat32Atomics} field. */
@NativeType("VkBool32")
public boolean shaderBufferFloat32Atomics() { return VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderBufferFloat32Atomics(address()) != 0; }
/** @return the value of the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderBufferFloat32AtomicAdd} field. */
@NativeType("VkBool32")
public boolean shaderBufferFloat32AtomicAdd() { return VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderBufferFloat32AtomicAdd(address()) != 0; }
/** @return the value of the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderBufferFloat64Atomics} field. */
@NativeType("VkBool32")
public boolean shaderBufferFloat64Atomics() { return VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderBufferFloat64Atomics(address()) != 0; }
/** @return the value of the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderBufferFloat64AtomicAdd} field. */
@NativeType("VkBool32")
public boolean shaderBufferFloat64AtomicAdd() { return VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderBufferFloat64AtomicAdd(address()) != 0; }
/** @return the value of the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderSharedFloat32Atomics} field. */
@NativeType("VkBool32")
public boolean shaderSharedFloat32Atomics() { return VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderSharedFloat32Atomics(address()) != 0; }
/** @return the value of the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderSharedFloat32AtomicAdd} field. */
@NativeType("VkBool32")
public boolean shaderSharedFloat32AtomicAdd() { return VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderSharedFloat32AtomicAdd(address()) != 0; }
/** @return the value of the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderSharedFloat64Atomics} field. */
@NativeType("VkBool32")
public boolean shaderSharedFloat64Atomics() { return VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderSharedFloat64Atomics(address()) != 0; }
/** @return the value of the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderSharedFloat64AtomicAdd} field. */
@NativeType("VkBool32")
public boolean shaderSharedFloat64AtomicAdd() { return VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderSharedFloat64AtomicAdd(address()) != 0; }
/** @return the value of the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderImageFloat32Atomics} field. */
@NativeType("VkBool32")
public boolean shaderImageFloat32Atomics() { return VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderImageFloat32Atomics(address()) != 0; }
/** @return the value of the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderImageFloat32AtomicAdd} field. */
@NativeType("VkBool32")
public boolean shaderImageFloat32AtomicAdd() { return VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderImageFloat32AtomicAdd(address()) != 0; }
/** @return the value of the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#sparseImageFloat32Atomics} field. */
@NativeType("VkBool32")
public boolean sparseImageFloat32Atomics() { return VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nsparseImageFloat32Atomics(address()) != 0; }
/** @return the value of the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#sparseImageFloat32AtomicAdd} field. */
@NativeType("VkBool32")
public boolean sparseImageFloat32AtomicAdd() { return VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nsparseImageFloat32AtomicAdd(address()) != 0; }
/** Sets the specified value to the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#sType} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer sType(@NativeType("VkStructureType") int value) { VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nsType(address(), value); return this; }
/** Sets the {@link EXTShaderAtomicFloat#VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT} value to the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#sType} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer sType$Default() { return sType(EXTShaderAtomicFloat.VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT); }
/** Sets the specified value to the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#pNext} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer pNext(@NativeType("void *") long value) { VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.npNext(address(), value); return this; }
/** Sets the specified value to the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderBufferFloat32Atomics} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer shaderBufferFloat32Atomics(@NativeType("VkBool32") boolean value) { VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderBufferFloat32Atomics(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderBufferFloat32AtomicAdd} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer shaderBufferFloat32AtomicAdd(@NativeType("VkBool32") boolean value) { VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderBufferFloat32AtomicAdd(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderBufferFloat64Atomics} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer shaderBufferFloat64Atomics(@NativeType("VkBool32") boolean value) { VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderBufferFloat64Atomics(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderBufferFloat64AtomicAdd} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer shaderBufferFloat64AtomicAdd(@NativeType("VkBool32") boolean value) { VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderBufferFloat64AtomicAdd(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderSharedFloat32Atomics} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer shaderSharedFloat32Atomics(@NativeType("VkBool32") boolean value) { VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderSharedFloat32Atomics(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderSharedFloat32AtomicAdd} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer shaderSharedFloat32AtomicAdd(@NativeType("VkBool32") boolean value) { VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderSharedFloat32AtomicAdd(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderSharedFloat64Atomics} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer shaderSharedFloat64Atomics(@NativeType("VkBool32") boolean value) { VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderSharedFloat64Atomics(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderSharedFloat64AtomicAdd} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer shaderSharedFloat64AtomicAdd(@NativeType("VkBool32") boolean value) { VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderSharedFloat64AtomicAdd(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderImageFloat32Atomics} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer shaderImageFloat32Atomics(@NativeType("VkBool32") boolean value) { VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderImageFloat32Atomics(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#shaderImageFloat32AtomicAdd} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer shaderImageFloat32AtomicAdd(@NativeType("VkBool32") boolean value) { VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nshaderImageFloat32AtomicAdd(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#sparseImageFloat32Atomics} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer sparseImageFloat32Atomics(@NativeType("VkBool32") boolean value) { VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nsparseImageFloat32Atomics(address(), value ? 1 : 0); return this; }
/** Sets the specified value to the {@link VkPhysicalDeviceShaderAtomicFloatFeaturesEXT#sparseImageFloat32AtomicAdd} field. */
public VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.Buffer sparseImageFloat32AtomicAdd(@NativeType("VkBool32") boolean value) { VkPhysicalDeviceShaderAtomicFloatFeaturesEXT.nsparseImageFloat32AtomicAdd(address(), value ? 1 : 0); return this; }
}
}