public class VkPhysicalDeviceConservativeRasterizationPropertiesEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the VkPhysicalDeviceConservativeRasterizationPropertiesEXT structure is included in the pNext chain of VkPhysicalDeviceProperties2, it is filled with the implementation-dependent limits and properties.
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.primitiveOverestimationSize – the size in pixels the generating primitive is increased at each of its edges during conservative rasterization overestimation mode. Even with a size of 0.0, conservative rasterization overestimation rules still apply and if any part of the pixel rectangle is covered by the generating primitive, fragments are generated for the entire pixel. However implementations may make the pixel coverage area even more conservative by increasing the size of the generating primitive.maxExtraPrimitiveOverestimationSize – the maximum size in pixels of extra overestimation the implementation supports in the pipeline state. A value of 0.0 means the implementation does not support any additional overestimation of the generating primitive during conservative rasterization. A value above 0.0 allows the application to further increase the size of the generating primitive during conservative rasterization overestimation.extraPrimitiveOverestimationSizeGranularity – the granularity of extra overestimation that can be specified in the pipeline state between 0.0 and maxExtraPrimitiveOverestimationSize inclusive. A value of 0.0 means the implementation can use the smallest representable non-zero value in the screen space pixel fixed-point grid.primitiveUnderestimation – true if the implementation supports the CONSERVATIVE_RASTERIZATION_MODE_UNDERESTIMATE_EXT conservative rasterization mode in addition to CONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXT. Otherwise the implementation only supports CONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXT.conservativePointAndLineRasterization – true if the implementation supports conservative rasterization of point and line primitives as well as triangle primitives. Otherwise the implementation only supports triangle primitives.degenerateTrianglesRasterized – false if the implementation culls primitives generated from triangles that become zero area after they are quantized to the fixed-point rasterization pixel grid. degenerateTrianglesRasterized is true if these primitives are not culled and the provoking vertex attributes and depth value are used for the fragments. The primitive area calculation is done on the primitive generated from the clipped triangle if applicable. Zero area primitives are backfacing and the application can enable backface culling if desired.degenerateLinesRasterized – false if the implementation culls lines that become zero length after they are quantized to the fixed-point rasterization pixel grid. degenerateLinesRasterized is true if zero length lines are not culled and the provoking vertex attributes and depth value are used for the fragments.fullyCoveredFragmentShaderInputVariable – true if the implementation supports the SPIR-V builtin fragment shader input variable FullyCoveredEXT which specifies that conservative rasterization is enabled and the fragment area is fully covered by the generating primitive.conservativeRasterizationPostDepthCoverage – true if the implementation supports conservative rasterization with the PostDepthCoverage execution mode enabled. When supported the SampleMask built-in input variable will reflect the coverage after the early per-fragment depth and stencil tests are applied even when conservative rasterization is enabled. Otherwise PostDepthCoverage execution mode must not be used when conservative rasterization is enabled.
struct VkPhysicalDeviceConservativeRasterizationPropertiesEXT {
VkStructureType sType;
void * pNext;
float primitiveOverestimationSize;
float maxExtraPrimitiveOverestimationSize;
float extraPrimitiveOverestimationSizeGranularity;
VkBool32 primitiveUnderestimation;
VkBool32 conservativePointAndLineRasterization;
VkBool32 degenerateTrianglesRasterized;
VkBool32 degenerateLinesRasterized;
VkBool32 fullyCoveredFragmentShaderInputVariable;
VkBool32 conservativeRasterizationPostDepthCoverage;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer
An array of
VkPhysicalDeviceConservativeRasterizationPropertiesEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CONSERVATIVEPOINTANDLINERASTERIZATION
The struct member offsets.
|
static int |
CONSERVATIVERASTERIZATIONPOSTDEPTHCOVERAGE
The struct member offsets.
|
static int |
DEGENERATELINESRASTERIZED
The struct member offsets.
|
static int |
DEGENERATETRIANGLESRASTERIZED
The struct member offsets.
|
static int |
EXTRAPRIMITIVEOVERESTIMATIONSIZEGRANULARITY
The struct member offsets.
|
static int |
FULLYCOVEREDFRAGMENTSHADERINPUTVARIABLE
The struct member offsets.
|
static int |
MAXEXTRAPRIMITIVEOVERESTIMATIONSIZE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PRIMITIVEOVERESTIMATIONSIZE
The struct member offsets.
|
static int |
PRIMITIVEUNDERESTIMATION
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceConservativeRasterizationPropertiesEXT(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT |
calloc()
Returns a new
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance allocated with memCalloc. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT |
callocStack()
Returns a new
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
boolean |
conservativePointAndLineRasterization()
Returns the value of the
conservativePointAndLineRasterization field. |
boolean |
conservativeRasterizationPostDepthCoverage()
Returns the value of the
conservativeRasterizationPostDepthCoverage field. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT |
create()
Returns a new
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance allocated with BufferUtils. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT |
create(long address)
Returns a new
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance for the specified memory address. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance at the specified memory. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT |
createSafe(long address)
|
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer |
createSafe(long address,
int capacity)
|
boolean |
degenerateLinesRasterized()
Returns the value of the
degenerateLinesRasterized field. |
boolean |
degenerateTrianglesRasterized()
Returns the value of the
degenerateTrianglesRasterized field. |
float |
extraPrimitiveOverestimationSizeGranularity()
Returns the value of the
extraPrimitiveOverestimationSizeGranularity field. |
boolean |
fullyCoveredFragmentShaderInputVariable()
Returns the value of the
fullyCoveredFragmentShaderInputVariable field. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT |
malloc()
Returns a new
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance allocated with memAlloc. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT |
mallocStack()
Returns a new
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceConservativeRasterizationPropertiesEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance allocated on the specified MemoryStack. |
float |
maxExtraPrimitiveOverestimationSize()
Returns the value of the
maxExtraPrimitiveOverestimationSize field. |
static int |
nconservativePointAndLineRasterization(long struct)
Unsafe version of
conservativePointAndLineRasterization(). |
static int |
nconservativeRasterizationPostDepthCoverage(long struct)
Unsafe version of
conservativeRasterizationPostDepthCoverage(). |
static int |
ndegenerateLinesRasterized(long struct)
Unsafe version of
degenerateLinesRasterized(). |
static int |
ndegenerateTrianglesRasterized(long struct)
Unsafe version of
degenerateTrianglesRasterized(). |
static float |
nextraPrimitiveOverestimationSizeGranularity(long struct)
Unsafe version of
extraPrimitiveOverestimationSizeGranularity(). |
static int |
nfullyCoveredFragmentShaderInputVariable(long struct)
Unsafe version of
fullyCoveredFragmentShaderInputVariable(). |
static float |
nmaxExtraPrimitiveOverestimationSize(long struct)
Unsafe version of
maxExtraPrimitiveOverestimationSize(). |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static float |
nprimitiveOverestimationSize(long struct)
Unsafe version of
primitiveOverestimationSize(). |
static int |
nprimitiveUnderestimation(long struct)
Unsafe version of
primitiveUnderestimation(). |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkPhysicalDeviceConservativeRasterizationPropertiesEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
float |
primitiveOverestimationSize()
Returns the value of the
primitiveOverestimationSize field. |
boolean |
primitiveUnderestimation()
Returns the value of the
primitiveUnderestimation field. |
VkPhysicalDeviceConservativeRasterizationPropertiesEXT |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkPhysicalDeviceConservativeRasterizationPropertiesEXT |
set(VkPhysicalDeviceConservativeRasterizationPropertiesEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceConservativeRasterizationPropertiesEXT |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int PRIMITIVEOVERESTIMATIONSIZE
public static final int MAXEXTRAPRIMITIVEOVERESTIMATIONSIZE
public static final int EXTRAPRIMITIVEOVERESTIMATIONSIZEGRANULARITY
public static final int PRIMITIVEUNDERESTIMATION
public static final int CONSERVATIVEPOINTANDLINERASTERIZATION
public static final int DEGENERATETRIANGLESRASTERIZED
public static final int DEGENERATELINESRASTERIZED
public static final int FULLYCOVEREDFRAGMENTSHADERINPUTVARIABLE
public static final int CONSERVATIVERASTERIZATIONPOSTDEPTHCOVERAGE
public VkPhysicalDeviceConservativeRasterizationPropertiesEXT(java.nio.ByteBuffer container)
VkPhysicalDeviceConservativeRasterizationPropertiesEXT 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public float primitiveOverestimationSize()
primitiveOverestimationSize field.public float maxExtraPrimitiveOverestimationSize()
maxExtraPrimitiveOverestimationSize field.public float extraPrimitiveOverestimationSizeGranularity()
extraPrimitiveOverestimationSizeGranularity field.public boolean primitiveUnderestimation()
primitiveUnderestimation field.public boolean conservativePointAndLineRasterization()
conservativePointAndLineRasterization field.public boolean degenerateTrianglesRasterized()
degenerateTrianglesRasterized field.public boolean degenerateLinesRasterized()
degenerateLinesRasterized field.public boolean fullyCoveredFragmentShaderInputVariable()
fullyCoveredFragmentShaderInputVariable field.public boolean conservativeRasterizationPostDepthCoverage()
conservativeRasterizationPostDepthCoverage field.public VkPhysicalDeviceConservativeRasterizationPropertiesEXT sType(int value)
sType field.public VkPhysicalDeviceConservativeRasterizationPropertiesEXT pNext(long value)
pNext field.public VkPhysicalDeviceConservativeRasterizationPropertiesEXT set(int sType, long pNext)
public VkPhysicalDeviceConservativeRasterizationPropertiesEXT set(VkPhysicalDeviceConservativeRasterizationPropertiesEXT src)
src - the source structpublic static VkPhysicalDeviceConservativeRasterizationPropertiesEXT malloc()
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceConservativeRasterizationPropertiesEXT calloc()
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceConservativeRasterizationPropertiesEXT create()
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance allocated with BufferUtils.public static VkPhysicalDeviceConservativeRasterizationPropertiesEXT create(long address)
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance for the specified memory address.@Nullable public static VkPhysicalDeviceConservativeRasterizationPropertiesEXT createSafe(long address)
public static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer malloc(int capacity)
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer calloc(int capacity)
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer create(int capacity)
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer create(long address, int capacity)
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceConservativeRasterizationPropertiesEXT mallocStack()
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceConservativeRasterizationPropertiesEXT callocStack()
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceConservativeRasterizationPropertiesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceConservativeRasterizationPropertiesEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceConservativeRasterizationPropertiesEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer mallocStack(int capacity)
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer callocStack(int capacity)
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceConservativeRasterizationPropertiesEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static float nprimitiveOverestimationSize(long struct)
primitiveOverestimationSize().public static float nmaxExtraPrimitiveOverestimationSize(long struct)
maxExtraPrimitiveOverestimationSize().public static float nextraPrimitiveOverestimationSizeGranularity(long struct)
extraPrimitiveOverestimationSizeGranularity().public static int nprimitiveUnderestimation(long struct)
primitiveUnderestimation().public static int nconservativePointAndLineRasterization(long struct)
conservativePointAndLineRasterization().public static int ndegenerateTrianglesRasterized(long struct)
degenerateTrianglesRasterized().public static int ndegenerateLinesRasterized(long struct)
degenerateLinesRasterized().public static int nfullyCoveredFragmentShaderInputVariable(long struct)
fullyCoveredFragmentShaderInputVariable().public static int nconservativeRasterizationPostDepthCoverage(long struct)
conservativeRasterizationPostDepthCoverage().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.Copyright LWJGL. All Rights Reserved. License terms.