Package org.lwjgl.vulkan
Class VkSamplerReductionModeCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSamplerReductionModeCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkSamplerReductionModeCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying sampler reduction mode.Description
If this structure is not present,
reductionModeis considered to beSAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO_EXTreductionModemust be a validVkSamplerReductionModeEXTvalue
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.reductionMode– an enum of typeVkSamplerReductionModeEXTthat controls how texture filtering combines texel values.
Layout
struct VkSamplerReductionModeCreateInfoEXT { VkStructureType sType; void const * pNext; VkSamplerReductionModeEXT reductionMode; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSamplerReductionModeCreateInfoEXT.BufferAn array ofVkSamplerReductionModeCreateInfoEXTstructs.
-
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 VkSamplerReductionModeCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkSamplerReductionModeCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSamplerReductionModeCreateInfoEXTcalloc()Returns a newVkSamplerReductionModeCreateInfoEXTinstance allocated withmemCalloc.static VkSamplerReductionModeCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkSamplerReductionModeCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkSamplerReductionModeCreateInfoEXTcallocStack()Returns a newVkSamplerReductionModeCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSamplerReductionModeCreateInfoEXT.BuffercallocStack(int capacity)Returns a newVkSamplerReductionModeCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSamplerReductionModeCreateInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerReductionModeCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSamplerReductionModeCreateInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerReductionModeCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSamplerReductionModeCreateInfoEXTcreate()Returns a newVkSamplerReductionModeCreateInfoEXTinstance allocated withBufferUtils.static VkSamplerReductionModeCreateInfoEXT.Buffercreate(int capacity)Returns a newVkSamplerReductionModeCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkSamplerReductionModeCreateInfoEXTcreate(long address)Returns a newVkSamplerReductionModeCreateInfoEXTinstance for the specified memory address.static VkSamplerReductionModeCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkSamplerReductionModeCreateInfoEXT.Bufferinstance at the specified memory.static VkSamplerReductionModeCreateInfoEXTcreateSafe(long address)static VkSamplerReductionModeCreateInfoEXT.BuffercreateSafe(long address, int capacity)static VkSamplerReductionModeCreateInfoEXTmalloc()Returns a newVkSamplerReductionModeCreateInfoEXTinstance allocated withmemAlloc.static VkSamplerReductionModeCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkSamplerReductionModeCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkSamplerReductionModeCreateInfoEXTmallocStack()Returns a newVkSamplerReductionModeCreateInfoEXTinstance allocated on the thread-localMemoryStack.static VkSamplerReductionModeCreateInfoEXT.BuffermallocStack(int capacity)Returns a newVkSamplerReductionModeCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkSamplerReductionModeCreateInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerReductionModeCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkSamplerReductionModeCreateInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSamplerReductionModeCreateInfoEXTinstance 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()Returns the value of thepNextfield.VkSamplerReductionModeCreateInfoEXTpNext(long value)Sets the specified value to thepNextfield.intreductionMode()Returns the value of thereductionModefield.VkSamplerReductionModeCreateInfoEXTreductionMode(int value)Sets the specified value to thereductionModefield.VkSamplerReductionModeCreateInfoEXTset(int sType, long pNext, int reductionMode)Initializes this struct with the specified values.VkSamplerReductionModeCreateInfoEXTset(VkSamplerReductionModeCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkSamplerReductionModeCreateInfoEXTsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkSamplerReductionModeCreateInfoEXT
public VkSamplerReductionModeCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkSamplerReductionModeCreateInfoEXTinstance 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.
-
reductionMode
public int reductionMode()
Returns the value of thereductionModefield.
-
sType
public VkSamplerReductionModeCreateInfoEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkSamplerReductionModeCreateInfoEXT pNext(long value)
Sets the specified value to thepNextfield.
-
reductionMode
public VkSamplerReductionModeCreateInfoEXT reductionMode(int value)
Sets the specified value to thereductionModefield.
-
set
public VkSamplerReductionModeCreateInfoEXT set(int sType, long pNext, int reductionMode)
Initializes this struct with the specified values.
-
set
public VkSamplerReductionModeCreateInfoEXT set(VkSamplerReductionModeCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSamplerReductionModeCreateInfoEXT malloc()
Returns a newVkSamplerReductionModeCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSamplerReductionModeCreateInfoEXT calloc()
Returns a newVkSamplerReductionModeCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSamplerReductionModeCreateInfoEXT create()
Returns a newVkSamplerReductionModeCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkSamplerReductionModeCreateInfoEXT create(long address)
Returns a newVkSamplerReductionModeCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkSamplerReductionModeCreateInfoEXT createSafe(long address)
-
malloc
public static VkSamplerReductionModeCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkSamplerReductionModeCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSamplerReductionModeCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkSamplerReductionModeCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSamplerReductionModeCreateInfoEXT.Buffer create(int capacity)
Returns a newVkSamplerReductionModeCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSamplerReductionModeCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkSamplerReductionModeCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSamplerReductionModeCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkSamplerReductionModeCreateInfoEXT mallocStack()
Returns a newVkSamplerReductionModeCreateInfoEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkSamplerReductionModeCreateInfoEXT callocStack()
Returns a newVkSamplerReductionModeCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkSamplerReductionModeCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerReductionModeCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkSamplerReductionModeCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerReductionModeCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkSamplerReductionModeCreateInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkSamplerReductionModeCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkSamplerReductionModeCreateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkSamplerReductionModeCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkSamplerReductionModeCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerReductionModeCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkSamplerReductionModeCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSamplerReductionModeCreateInfoEXT.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.
-
-