org.lwjgl.vulkan.VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT 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 java.nio.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.MemoryUtil.*;
/**
* Structure describing advanced blending limits that can be supported by an implementation.
*
* Description
*
*
* - {@code advancedBlendMaxColorAttachments} is one greater than the highest color attachment index that can be used in a subpass, for a pipeline that uses an advanced blend operation.
* - {@code advancedBlendIndependentBlend} indicates whether advanced blend operations can vary per-attachment.
* - {@code advancedBlendNonPremultipliedSrcColor} indicates whether the source color can be treated as non-premultiplied. If this is {@link VK10#VK_FALSE FALSE}, then {@link VkPipelineColorBlendAdvancedStateCreateInfoEXT}{@code ::srcPremultiplied} must be {@link VK10#VK_TRUE TRUE}.
* - {@code advancedBlendNonPremultipliedDstColor} indicates whether the destination color can be treated as non-premultiplied. If this is {@link VK10#VK_FALSE FALSE}, then {@link VkPipelineColorBlendAdvancedStateCreateInfoEXT}{@code ::dstPremultiplied} must be {@link VK10#VK_TRUE TRUE}.
* - {@code advancedBlendCorrelatedOverlap} indicates whether the overlap mode can be treated as correlated. If this is {@link VK10#VK_FALSE FALSE}, then {@link VkPipelineColorBlendAdvancedStateCreateInfoEXT}{@code ::blendOverlap} must be {@link EXTBlendOperationAdvanced#VK_BLEND_OVERLAP_UNCORRELATED_EXT BLEND_OVERLAP_UNCORRELATED_EXT}.
* - {@code advancedBlendAllOperations} indicates whether all advanced blend operation enums are supported. See the valid usage of {@link VkPipelineColorBlendAttachmentState}.
*
*
* Valid Usage (Implicit)
*
*
* - {@code sType} must be {@link EXTBlendOperationAdvanced#VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_PROPERTIES_EXT STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_PROPERTIES_EXT}
*
*
* If the {@link VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT} structure is included in the {@code pNext} chain of {@link VkPhysicalDeviceProperties2KHR}, it is filled with the implementation-dependent limits.
*
* Layout
*
*
* struct VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT {
* VkStructureType sType;
* void * pNext;
* uint32_t advancedBlendMaxColorAttachments;
* VkBool32 advancedBlendIndependentBlend;
* VkBool32 advancedBlendNonPremultipliedSrcColor;
* VkBool32 advancedBlendNonPremultipliedDstColor;
* VkBool32 advancedBlendCorrelatedOverlap;
* VkBool32 advancedBlendAllOperations;
* }
*/
public class VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT extends Struct {
/** The struct size in bytes. */
public static final int SIZEOF;
public static final int ALIGNOF;
/** The struct member offsets. */
public static final int
STYPE,
PNEXT,
ADVANCEDBLENDMAXCOLORATTACHMENTS,
ADVANCEDBLENDINDEPENDENTBLEND,
ADVANCEDBLENDNONPREMULTIPLIEDSRCCOLOR,
ADVANCEDBLENDNONPREMULTIPLIEDDSTCOLOR,
ADVANCEDBLENDCORRELATEDOVERLAP,
ADVANCEDBLENDALLOPERATIONS;
static {
Layout layout = __struct(
__member(4),
__member(POINTER_SIZE),
__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);
ADVANCEDBLENDMAXCOLORATTACHMENTS = layout.offsetof(2);
ADVANCEDBLENDINDEPENDENTBLEND = layout.offsetof(3);
ADVANCEDBLENDNONPREMULTIPLIEDSRCCOLOR = layout.offsetof(4);
ADVANCEDBLENDNONPREMULTIPLIEDDSTCOLOR = layout.offsetof(5);
ADVANCEDBLENDCORRELATEDOVERLAP = layout.offsetof(6);
ADVANCEDBLENDALLOPERATIONS = layout.offsetof(7);
}
VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT(long address, ByteBuffer container) {
super(address, container);
}
/**
* Creates a {@link VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT} 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 VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT(ByteBuffer container) {
this(memAddress(container), checkContainer(container, SIZEOF));
}
@Override
public int sizeof() { return SIZEOF; }
/** Returns the value of the {@code sType} field. */
@NativeType("VkStructureType")
public int sType() { return nsType(address()); }
/** Returns the value of the {@code pNext} field. */
@NativeType("void *")
public long pNext() { return npNext(address()); }
/** Returns the value of the {@code advancedBlendMaxColorAttachments} field. */
@NativeType("uint32_t")
public int advancedBlendMaxColorAttachments() { return nadvancedBlendMaxColorAttachments(address()); }
/** Returns the value of the {@code advancedBlendIndependentBlend} field. */
@NativeType("VkBool32")
public boolean advancedBlendIndependentBlend() { return nadvancedBlendIndependentBlend(address()) != 0; }
/** Returns the value of the {@code advancedBlendNonPremultipliedSrcColor} field. */
@NativeType("VkBool32")
public boolean advancedBlendNonPremultipliedSrcColor() { return nadvancedBlendNonPremultipliedSrcColor(address()) != 0; }
/** Returns the value of the {@code advancedBlendNonPremultipliedDstColor} field. */
@NativeType("VkBool32")
public boolean advancedBlendNonPremultipliedDstColor() { return nadvancedBlendNonPremultipliedDstColor(address()) != 0; }
/** Returns the value of the {@code advancedBlendCorrelatedOverlap} field. */
@NativeType("VkBool32")
public boolean advancedBlendCorrelatedOverlap() { return nadvancedBlendCorrelatedOverlap(address()) != 0; }
/** Returns the value of the {@code advancedBlendAllOperations} field. */
@NativeType("VkBool32")
public boolean advancedBlendAllOperations() { return nadvancedBlendAllOperations(address()) != 0; }
// -----------------------------------
/** Returns a new {@link VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT} instance for the specified memory address or {@code null} if the address is {@code NULL}. */
public static VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT create(long address) {
return address == NULL ? null : new VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT(address, null);
}
/**
* Create a {@link VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.Buffer} instance at the specified memory.
*
* @param address the memory address
* @param capacity the buffer capacity
*/
public static Buffer create(long address, int capacity) {
return address == NULL ? null : new Buffer(address, null, -1, 0, capacity, capacity);
}
// -----------------------------------
/** Unsafe version of {@link #sType}. */
public static int nsType(long struct) { return memGetInt(struct + VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.STYPE); }
/** Unsafe version of {@link #pNext}. */
public static long npNext(long struct) { return memGetAddress(struct + VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.PNEXT); }
/** Unsafe version of {@link #advancedBlendMaxColorAttachments}. */
public static int nadvancedBlendMaxColorAttachments(long struct) { return memGetInt(struct + VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.ADVANCEDBLENDMAXCOLORATTACHMENTS); }
/** Unsafe version of {@link #advancedBlendIndependentBlend}. */
public static int nadvancedBlendIndependentBlend(long struct) { return memGetInt(struct + VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.ADVANCEDBLENDINDEPENDENTBLEND); }
/** Unsafe version of {@link #advancedBlendNonPremultipliedSrcColor}. */
public static int nadvancedBlendNonPremultipliedSrcColor(long struct) { return memGetInt(struct + VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.ADVANCEDBLENDNONPREMULTIPLIEDSRCCOLOR); }
/** Unsafe version of {@link #advancedBlendNonPremultipliedDstColor}. */
public static int nadvancedBlendNonPremultipliedDstColor(long struct) { return memGetInt(struct + VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.ADVANCEDBLENDNONPREMULTIPLIEDDSTCOLOR); }
/** Unsafe version of {@link #advancedBlendCorrelatedOverlap}. */
public static int nadvancedBlendCorrelatedOverlap(long struct) { return memGetInt(struct + VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.ADVANCEDBLENDCORRELATEDOVERLAP); }
/** Unsafe version of {@link #advancedBlendAllOperations}. */
public static int nadvancedBlendAllOperations(long struct) { return memGetInt(struct + VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.ADVANCEDBLENDALLOPERATIONS); }
// -----------------------------------
/** An array of {@link VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT} structs. */
public static class Buffer extends StructBuffer {
/**
* Creates a new {@link VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.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 VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT#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);
}
Buffer(long address, 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 Buffer newBufferInstance(long address, ByteBuffer container, int mark, int pos, int lim, int cap) {
return new Buffer(address, container, mark, pos, lim, cap);
}
@Override
protected VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT newInstance(long address) {
return new VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT(address, container);
}
@Override
public int sizeof() {
return SIZEOF;
}
/** Returns the value of the {@code sType} field. */
@NativeType("VkStructureType")
public int sType() { return VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.nsType(address()); }
/** Returns the value of the {@code pNext} field. */
@NativeType("void *")
public long pNext() { return VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.npNext(address()); }
/** Returns the value of the {@code advancedBlendMaxColorAttachments} field. */
@NativeType("uint32_t")
public int advancedBlendMaxColorAttachments() { return VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.nadvancedBlendMaxColorAttachments(address()); }
/** Returns the value of the {@code advancedBlendIndependentBlend} field. */
@NativeType("VkBool32")
public boolean advancedBlendIndependentBlend() { return VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.nadvancedBlendIndependentBlend(address()) != 0; }
/** Returns the value of the {@code advancedBlendNonPremultipliedSrcColor} field. */
@NativeType("VkBool32")
public boolean advancedBlendNonPremultipliedSrcColor() { return VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.nadvancedBlendNonPremultipliedSrcColor(address()) != 0; }
/** Returns the value of the {@code advancedBlendNonPremultipliedDstColor} field. */
@NativeType("VkBool32")
public boolean advancedBlendNonPremultipliedDstColor() { return VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.nadvancedBlendNonPremultipliedDstColor(address()) != 0; }
/** Returns the value of the {@code advancedBlendCorrelatedOverlap} field. */
@NativeType("VkBool32")
public boolean advancedBlendCorrelatedOverlap() { return VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.nadvancedBlendCorrelatedOverlap(address()) != 0; }
/** Returns the value of the {@code advancedBlendAllOperations} field. */
@NativeType("VkBool32")
public boolean advancedBlendAllOperations() { return VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT.nadvancedBlendAllOperations(address()) != 0; }
}
}