Class VkPhysicalDeviceSamplerFilterMinmaxProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceSamplerFilterMinmaxProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
public class VkPhysicalDeviceSamplerFilterMinmaxProperties 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
VkPhysicalDeviceSamplerFilterMinmaxPropertiesstructure is included in thepNextchain of theVkPhysicalDeviceProperties2structure passed toGetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.If
filterMinmaxSingleComponentFormatsisTRUE, the following formats must support theFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BITfeature 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 to the identity swizzle. 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)
Layout
struct VkPhysicalDeviceSamplerFilterMinmaxProperties { VkStructureTypesType(); void *pNext(); VkBool32filterMinmaxSingleComponentFormats(); VkBool32filterMinmaxImageComponentMapping(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceSamplerFilterMinmaxProperties.BufferAn array ofVkPhysicalDeviceSamplerFilterMinmaxPropertiesstructs.
-
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 VkPhysicalDeviceSamplerFilterMinmaxProperties(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceSamplerFilterMinmaxPropertiescalloc()Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated withmemCalloc.static VkPhysicalDeviceSamplerFilterMinmaxProperties.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceSamplerFilterMinmaxProperties.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSamplerFilterMinmaxPropertiescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSamplerFilterMinmaxPropertiescreate()Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated withBufferUtils.static VkPhysicalDeviceSamplerFilterMinmaxProperties.Buffercreate(int capacity)Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceSamplerFilterMinmaxPropertiescreate(long address)Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance for the specified memory address.static VkPhysicalDeviceSamplerFilterMinmaxProperties.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance at the specified memory.static VkPhysicalDeviceSamplerFilterMinmaxPropertiescreateSafe(long address)static VkPhysicalDeviceSamplerFilterMinmaxProperties.BuffercreateSafe(long address, int capacity)booleanfilterMinmaxImageComponentMapping()a boolean value indicating whether the implementation supports non-identity component mapping of the image when doing min/max filtering.booleanfilterMinmaxSingleComponentFormats()a boolean value indicating whether a minimum set of required formats support min/max filtering.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesmalloc()Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated withmemAlloc.static VkPhysicalDeviceSamplerFilterMinmaxProperties.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceSamplerFilterMinmaxProperties.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceSamplerFilterMinmaxPropertiesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance 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()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceSamplerFilterMinmaxPropertiespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceSamplerFilterMinmaxPropertiesset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceSamplerFilterMinmaxPropertiesset(VkPhysicalDeviceSamplerFilterMinmaxProperties src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceSamplerFilterMinmaxPropertiessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceSamplerFilterMinmaxPropertiessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceSamplerFilterMinmaxProperties
public VkPhysicalDeviceSamplerFilterMinmaxProperties(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance 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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
filterMinmaxSingleComponentFormats
public boolean filterMinmaxSingleComponentFormats()
a boolean value indicating whether a minimum set of required formats support min/max filtering.
-
filterMinmaxImageComponentMapping
public boolean filterMinmaxImageComponentMapping()
a boolean value indicating whether the implementation supports non-identity component mapping of the image when doing min/max filtering.
-
sType
public VkPhysicalDeviceSamplerFilterMinmaxProperties sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceSamplerFilterMinmaxProperties sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceSamplerFilterMinmaxProperties pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkPhysicalDeviceSamplerFilterMinmaxProperties set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceSamplerFilterMinmaxProperties set(VkPhysicalDeviceSamplerFilterMinmaxProperties src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceSamplerFilterMinmaxProperties malloc()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceSamplerFilterMinmaxProperties calloc()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceSamplerFilterMinmaxProperties create()
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceSamplerFilterMinmaxProperties create(long address)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceSamplerFilterMinmaxProperties createSafe(long address)
-
malloc
public static VkPhysicalDeviceSamplerFilterMinmaxProperties.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSamplerFilterMinmaxProperties.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSamplerFilterMinmaxProperties.Buffer create(int capacity)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSamplerFilterMinmaxProperties.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceSamplerFilterMinmaxProperties.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceSamplerFilterMinmaxProperties malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceSamplerFilterMinmaxProperties calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceSamplerFilterMinmaxProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSamplerFilterMinmaxProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.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.
-
-