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.NativeResourceStructure describing sampler filter minmax limits that can be supported by an implementation.Description
If the
VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTstructure is included in thepNextchain ofVkPhysicalDeviceProperties2, it is filled with the implementation-dependent limits.If
filterMinmaxSingleComponentFormatsisTRUE, the following formats must support theFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT_EXTfeature withIMAGE_TILING_OPTIMAL, if they supportFORMAT_FEATURE_SAMPLED_IMAGE_BIT.FORMAT_R8_UNORMFORMAT_R8_SNORMFORMAT_R16_UNORMFORMAT_R16_SNORMFORMAT_R16_SFLOATFORMAT_R32_SFLOATFORMAT_D16_UNORMFORMAT_X8_D24_UNORM_PACK32FORMAT_D32_SFLOATFORMAT_D16_UNORM_S8_UINTFORMAT_D24_UNORM_S8_UINTFORMAT_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
filterMinmaxImageComponentMappingisFALSEthe component mapping of the image view used with min/max filtering must have been created with thercomponent set toCOMPONENT_SWIZZLE_IDENTITY. Only thercomponent of the sampled image value is defined and the other component values are undefined. IffilterMinmaxImageComponentMappingisTRUEthis restriction does not apply and image component mapping works as normal.Valid Usage (Implicit)
Member documentation
sType– the type of this structure.pNext–NULLor 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 classVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.BufferAn array ofVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFILTERMINMAXIMAGECOMPONENTMAPPING
FILTERMINMAXSINGLECOMPONENTFORMATS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTcalloc()Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTcallocStack()Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTcreate()Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTcreate(long address)Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance for the specified memory address.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTcreateSafe(long address)static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.BuffercreateSafe(long address, int capacity)booleanfilterMinmaxImageComponentMapping()Returns the value of thefilterMinmaxImageComponentMappingfield.booleanfilterMinmaxSingleComponentFormats()Returns the value of thefilterMinmaxSingleComponentFormatsfield.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTmalloc()Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTmallocStack()Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance allocated on the specifiedMemoryStack.static intnfilterMinmaxImageComponentMapping(long struct)Unsafe version offilterMinmaxImageComponentMapping().static intnfilterMinmaxSingleComponentFormats(long struct)Unsafe version offilterMinmaxSingleComponentFormats().static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTset(VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
public VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
filterMinmaxSingleComponentFormats
public boolean filterMinmaxSingleComponentFormats()
Returns the value of thefilterMinmaxSingleComponentFormatsfield.
-
filterMinmaxImageComponentMapping
public boolean filterMinmaxImageComponentMapping()
Returns the value of thefilterMinmaxImageComponentMappingfield.
-
sType
public VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT pNext(long value)
Sets the specified value to thepNextfield.
-
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 newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT calloc()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT create()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT create(long address)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Bufferinstance 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 newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT callocStack()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXTinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-