Class VkPhysicalDeviceSamplerFilterMinmaxProperties
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT
Description
If the VkPhysicalDeviceSamplerFilterMinmaxProperties structure is included in the pNext chain of the VkPhysicalDeviceProperties2 structure passed to GetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.
If filterMinmaxSingleComponentFormats is TRUE, the following formats must support the FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT feature with IMAGE_TILING_OPTIMAL, if they support FORMAT_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 filterMinmaxImageComponentMapping is FALSE the component mapping of the image view used with min/max filtering must have been created with the r component set to the identity swizzle. Only the r component of the sampled image value is defined and the other component values are undefined. If filterMinmaxImageComponentMapping is TRUE this restriction does not apply and image component mapping works as normal.
Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceSamplerFilterMinmaxProperties {
VkStructureType sType();
void * pNext();
VkBool32 filterMinmaxSingleComponentFormats();
VkBool32 filterMinmaxImageComponentMapping();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkPhysicalDeviceSamplerFilterMinmaxPropertiesstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated withBufferUtils.create(int capacity) Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance for the specified memory address.create(long address, int capacity) Create aVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance at the specified memory.static @Nullable VkPhysicalDeviceSamplerFilterMinmaxPropertiescreateSafe(long address) static @Nullable VkPhysicalDeviceSamplerFilterMinmaxProperties.BuffercreateSafe(long address, int capacity) booleana boolean value indicating whether the implementation supports non-identity component mapping of the image when doing min/max filtering.booleana boolean value indicating whether a minimum set of required formats support min/max filtering.malloc()Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated on the specifiedMemoryStack.malloc(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.pNext(long value) Sets the specified value to thepNext()field.set(int sType, long pNext) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()intsType()aVkStructureTypevalue identifying this structure.sType(int value) Sets the specified value to thesType()field.Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIESvalue to thesType()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
FILTERMINMAXSINGLECOMPONENTFORMATS
public static final int FILTERMINMAXSINGLECOMPONENTFORMATSThe struct member offsets. -
FILTERMINMAXIMAGECOMPONENTMAPPING
public static final int FILTERMINMAXIMAGECOMPONENTMAPPINGThe struct member offsets.
-
-
Constructor Details
-
VkPhysicalDeviceSamplerFilterMinmaxProperties
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkPhysicalDeviceSamplerFilterMinmaxProperties>
-
sType
public int sType()aVkStructureTypevalue identifying 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
Sets the specified value to thesType()field. -
sType$Default
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIESvalue to thesType()field. -
pNext
Sets the specified value to thepNext()field. -
set
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
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance allocated withBufferUtils. -
create
Returns a newVkPhysicalDeviceSamplerFilterMinmaxPropertiesinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkPhysicalDeviceSamplerFilterMinmaxProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
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
public static @Nullable 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:
capacity- the buffer capacitystack- the stack from which to allocate
-
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
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.
-