Package org.lwjgl.vulkan
Class VkSamplerReductionModeCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSamplerReductionModeCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkSamplerReductionModeCreateInfoEXT
public class VkSamplerReductionModeCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying sampler reduction mode.Description
If the
pNextchain ofVkSamplerCreateInfoincludes aVkSamplerReductionModeCreateInfostructure, then that structure includes a mode controlling how texture filtering combines texel values.If this structure is not present,
reductionModeis considered to beSAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFOreductionModemust be a validVkSamplerReductionModevalue
Layout
struct VkSamplerReductionModeCreateInfo { VkStructureTypesType(); void const *pNext(); VkSamplerReductionModereductionMode(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSamplerReductionModeCreateInfo.BufferAn array ofVkSamplerReductionModeCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
REDUCTIONMODEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkSamplerReductionModeCreateInfo(java.nio.ByteBuffer container)Creates aVkSamplerReductionModeCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSamplerReductionModeCreateInfocalloc()Returns a newVkSamplerReductionModeCreateInfoinstance allocated withmemCalloc.static VkSamplerReductionModeCreateInfo.Buffercalloc(int capacity)Returns a newVkSamplerReductionModeCreateInfo.Bufferinstance allocated withmemCalloc.static VkSamplerReductionModeCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerReductionModeCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSamplerReductionModeCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerReductionModeCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSamplerReductionModeCreateInfocreate()Returns a newVkSamplerReductionModeCreateInfoinstance allocated withBufferUtils.static VkSamplerReductionModeCreateInfo.Buffercreate(int capacity)Returns a newVkSamplerReductionModeCreateInfo.Bufferinstance allocated withBufferUtils.static VkSamplerReductionModeCreateInfocreate(long address)Returns a newVkSamplerReductionModeCreateInfoinstance for the specified memory address.static VkSamplerReductionModeCreateInfo.Buffercreate(long address, int capacity)Create aVkSamplerReductionModeCreateInfo.Bufferinstance at the specified memory.static VkSamplerReductionModeCreateInfocreateSafe(long address)static VkSamplerReductionModeCreateInfo.BuffercreateSafe(long address, int capacity)static VkSamplerReductionModeCreateInfomalloc()Returns a newVkSamplerReductionModeCreateInfoinstance allocated withmemAlloc.static VkSamplerReductionModeCreateInfo.Buffermalloc(int capacity)Returns a newVkSamplerReductionModeCreateInfo.Bufferinstance allocated withmemAlloc.static VkSamplerReductionModeCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerReductionModeCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkSamplerReductionModeCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerReductionModeCreateInfoinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnreductionMode(long struct)Unsafe version ofreductionMode().static voidnreductionMode(long struct, int value)Unsafe version ofreductionMode.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.VkSamplerReductionModeCreateInfopNext(long value)Sets the specified value to thepNext()field.intreductionMode()aVkSamplerReductionModevalue controlling how texture filtering combines texel values.VkSamplerReductionModeCreateInforeductionMode(int value)Sets the specified value to thereductionMode()field.VkSamplerReductionModeCreateInfoset(int sType, long pNext, int reductionMode)Initializes this struct with the specified values.VkSamplerReductionModeCreateInfoset(VkSamplerReductionModeCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkSamplerReductionModeCreateInfosType(int value)Sets the specified value to thesType()field.VkSamplerReductionModeCreateInfosType$Default()Sets theSTRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFOvalue to thesType()field.
-
-
-
Constructor Detail
-
VkSamplerReductionModeCreateInfo
public VkSamplerReductionModeCreateInfo(java.nio.ByteBuffer container)
Creates aVkSamplerReductionModeCreateInfoinstance 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.
-
reductionMode
public int reductionMode()
aVkSamplerReductionModevalue controlling how texture filtering combines texel values.
-
sType
public VkSamplerReductionModeCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkSamplerReductionModeCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFOvalue to thesType()field.
-
pNext
public VkSamplerReductionModeCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
reductionMode
public VkSamplerReductionModeCreateInfo reductionMode(int value)
Sets the specified value to thereductionMode()field.
-
set
public VkSamplerReductionModeCreateInfo set(int sType, long pNext, int reductionMode)
Initializes this struct with the specified values.
-
set
public VkSamplerReductionModeCreateInfo set(VkSamplerReductionModeCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSamplerReductionModeCreateInfo malloc()
Returns a newVkSamplerReductionModeCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSamplerReductionModeCreateInfo calloc()
Returns a newVkSamplerReductionModeCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSamplerReductionModeCreateInfo create()
Returns a newVkSamplerReductionModeCreateInfoinstance allocated withBufferUtils.
-
create
public static VkSamplerReductionModeCreateInfo create(long address)
Returns a newVkSamplerReductionModeCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkSamplerReductionModeCreateInfo createSafe(long address)
-
malloc
public static VkSamplerReductionModeCreateInfo.Buffer malloc(int capacity)
Returns a newVkSamplerReductionModeCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSamplerReductionModeCreateInfo.Buffer calloc(int capacity)
Returns a newVkSamplerReductionModeCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSamplerReductionModeCreateInfo.Buffer create(int capacity)
Returns a newVkSamplerReductionModeCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSamplerReductionModeCreateInfo.Buffer create(long address, int capacity)
Create aVkSamplerReductionModeCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSamplerReductionModeCreateInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkSamplerReductionModeCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerReductionModeCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkSamplerReductionModeCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerReductionModeCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkSamplerReductionModeCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerReductionModeCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkSamplerReductionModeCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerReductionModeCreateInfo.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().
-
nreductionMode
public static int nreductionMode(long struct)
Unsafe version ofreductionMode().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nreductionMode
public static void nreductionMode(long struct, int value)Unsafe version ofreductionMode.
-
-