Class VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure describing sampler filter minmax limits that can be supported by an implementation.Description
If the
VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
structure is included in thepNext
chain ofVkPhysicalDeviceProperties2
, it is filled with the implementation-dependent limits.If
filterMinmaxSingleComponentFormats
isTRUE
, the following formats must support theFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT_EXT
feature withIMAGE_TILING_OPTIMAL
, if they supportFORMAT_FEATURE_SAMPLED_IMAGE_BIT
.FORMAT_R8_UNORM
FORMAT_R8_SNORM
FORMAT_R16_UNORM
FORMAT_R16_SNORM
FORMAT_R16_SFLOAT
FORMAT_R32_SFLOAT
FORMAT_D16_UNORM
FORMAT_X8_D24_UNORM_PACK32
FORMAT_D32_SFLOAT
FORMAT_D16_UNORM_S8_UINT
FORMAT_D24_UNORM_S8_UINT
FORMAT_D32_SFLOAT_S8_UINT
If the format is a depth/stencil format, this bit only specifies that the depth aspect (not the stencil aspect) of an image of this format supports min/max filtering, and that min/max filtering of the depth aspect is supported when depth compare is disabled in the sampler.
If
filterMinmaxImageComponentMapping
isFALSE
the component mapping of the image view used with min/max filtering must have been created with ther
component set toCOMPONENT_SWIZZLE_IDENTITY
. Only ther
component of the sampled image value is defined and the other component values are undefined. IffilterMinmaxImageComponentMapping
isTRUE
this restriction does not apply and image component mapping works as normal.Valid Usage (Implicit)
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.filterMinmaxSingleComponentFormats
– a boolean value indicating whether a minimum set of required formats support min/max filtering.filterMinmaxImageComponentMapping
– a boolean value indicating whether the implementation supports non-identity component mapping of the image when doing min/max filtering.
Layout
struct VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT { VkStructureType sType; void * pNext; VkBool32 filterMinmaxSingleComponentFormats; VkBool32 filterMinmaxImageComponentMapping; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
An array ofVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
FILTERMINMAXIMAGECOMPONENTMAPPING
FILTERMINMAXSINGLECOMPONENTFORMATS
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
calloc()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance allocated withmemCalloc
.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
callocStack()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
create()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance allocated withBufferUtils
.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
create(long address)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance for the specified memory address.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance at the specified memory.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
createSafe(long address)
static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
createSafe(long address, int capacity)
boolean
filterMinmaxImageComponentMapping()
Returns the value of thefilterMinmaxImageComponentMapping
field.boolean
filterMinmaxSingleComponentFormats()
Returns the value of thefilterMinmaxSingleComponentFormats
field.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
malloc()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance allocated withmemAlloc
.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
mallocStack()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance allocated on the specifiedMemoryStack
.static int
nfilterMinmaxImageComponentMapping(long struct)
Unsafe version offilterMinmaxImageComponentMapping()
.static int
nfilterMinmaxSingleComponentFormats(long struct)
Unsafe version offilterMinmaxSingleComponentFormats()
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
pNext(long value)
Sets the specified value to thepNext
field.VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
set(int sType, long pNext)
Initializes this struct with the specified values.VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
set(VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
public VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance at the current position of the specifiedByteBuffer
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
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
filterMinmaxSingleComponentFormats
public boolean filterMinmaxSingleComponentFormats()
Returns the value of thefilterMinmaxSingleComponentFormats
field.
-
filterMinmaxImageComponentMapping
public boolean filterMinmaxImageComponentMapping()
Returns the value of thefilterMinmaxImageComponentMapping
field.
-
sType
public VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT pNext(long value)
Sets the specified value to thepNext
field.
-
set
public VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT set(VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT malloc()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT calloc()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT create()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT create(long address)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT mallocStack()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT callocStack()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType()
.
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext()
.
-
nfilterMinmaxSingleComponentFormats
public static int nfilterMinmaxSingleComponentFormats(long struct)
Unsafe version offilterMinmaxSingleComponentFormats()
.
-
nfilterMinmaxImageComponentMapping
public static int nfilterMinmaxImageComponentMapping(long struct)
Unsafe version offilterMinmaxImageComponentMapping()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
-