Package org.lwjgl.ovr
Class OVRTextureSwapChainDesc
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRTextureSwapChainDesc
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class OVRTextureSwapChainDesc extends Struct
Description used to create a texture swap chain.Member documentation
ArraySize– only supported withOVR.ovrTexture_2D. Not supported on PC at this time.SampleCount– current only supported on depth texturesStaticImage– not buffered in a chain. For images that don't changeMiscFlags–ovrTextureFlags. One or more of:TextureMisc_AllowGenerateMipsTextureMisc_DX_TypelessTextureMisc_NoneTextureMisc_ProtectedContentBindFlags–ovrTextureBindFlags. Not used for GL. One or more of:TextureBind_DX_DepthStencilTextureBind_DX_RenderTargetTextureBind_DX_UnorderedAccessTextureBind_None
Layout
struct ovrTextureSwapChainDesc { ovrTextureType Type; ovrTextureFormat Format; int ArraySize; int Width; int Height; int MipLevels; int SampleCount; ovrBool StaticImage; unsigned int MiscFlags; unsigned int BindFlags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classOVRTextureSwapChainDesc.BufferAn array ofOVRTextureSwapChainDescstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description OVRTextureSwapChainDesc(java.nio.ByteBuffer container)Creates aOVRTextureSwapChainDescinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intArraySize()Returns the value of theArraySizefield.OVRTextureSwapChainDescArraySize(int value)Sets the specified value to theArraySizefield.intBindFlags()Returns the value of theBindFlagsfield.OVRTextureSwapChainDescBindFlags(int value)Sets the specified value to theBindFlagsfield.static OVRTextureSwapChainDesccalloc()Returns a newOVRTextureSwapChainDescinstance allocated withmemCalloc.static OVRTextureSwapChainDesc.Buffercalloc(int capacity)Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated withmemCalloc.static OVRTextureSwapChainDesccallocStack()Returns a newOVRTextureSwapChainDescinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRTextureSwapChainDesc.BuffercallocStack(int capacity)Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRTextureSwapChainDesc.BuffercallocStack(int capacity, MemoryStack stack)Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTextureSwapChainDesccallocStack(MemoryStack stack)Returns a newOVRTextureSwapChainDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTextureSwapChainDesccreate()Returns a newOVRTextureSwapChainDescinstance allocated withBufferUtils.static OVRTextureSwapChainDesc.Buffercreate(int capacity)Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated withBufferUtils.static OVRTextureSwapChainDesccreate(long address)Returns a newOVRTextureSwapChainDescinstance for the specified memory address ornullif the address isNULL.static OVRTextureSwapChainDesc.Buffercreate(long address, int capacity)Create aOVRTextureSwapChainDesc.Bufferinstance at the specified memory.intFormat()Returns the value of theFormatfield.OVRTextureSwapChainDescFormat(int value)Sets the specified value to theFormatfield.intHeight()Returns the value of theHeightfield.OVRTextureSwapChainDescHeight(int value)Sets the specified value to theHeightfield.static OVRTextureSwapChainDescmalloc()Returns a newOVRTextureSwapChainDescinstance allocated withmemAlloc.static OVRTextureSwapChainDesc.Buffermalloc(int capacity)Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated withmemAlloc.static OVRTextureSwapChainDescmallocStack()Returns a newOVRTextureSwapChainDescinstance allocated on the thread-localMemoryStack.static OVRTextureSwapChainDesc.BuffermallocStack(int capacity)Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated on the thread-localMemoryStack.static OVRTextureSwapChainDesc.BuffermallocStack(int capacity, MemoryStack stack)Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated on the specifiedMemoryStack.static OVRTextureSwapChainDescmallocStack(MemoryStack stack)Returns a newOVRTextureSwapChainDescinstance allocated on the specifiedMemoryStack.intMipLevels()Returns the value of theMipLevelsfield.OVRTextureSwapChainDescMipLevels(int value)Sets the specified value to theMipLevelsfield.intMiscFlags()Returns the value of theMiscFlagsfield.OVRTextureSwapChainDescMiscFlags(int value)Sets the specified value to theMiscFlagsfield.OVRTextureSwapChainDescnset(long struct)Unsafe version ofset.intSampleCount()Returns the value of theSampleCountfield.OVRTextureSwapChainDescSampleCount(int value)Sets the specified value to theSampleCountfield.OVRTextureSwapChainDescset(int Type, int Format, int ArraySize, int Width, int Height, int MipLevels, int SampleCount, boolean StaticImage, int MiscFlags, int BindFlags)Initializes this struct with the specified values.OVRTextureSwapChainDescset(OVRTextureSwapChainDesc src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).booleanStaticImage()Returns the value of theStaticImagefield.OVRTextureSwapChainDescStaticImage(boolean value)Sets the specified value to theStaticImagefield.intType()Returns the value of theTypefield.OVRTextureSwapChainDescType(int value)Sets the specified value to theTypefield.intWidth()Returns the value of theWidthfield.OVRTextureSwapChainDescWidth(int value)Sets the specified value to theWidthfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
OVRTextureSwapChainDesc
public OVRTextureSwapChainDesc(java.nio.ByteBuffer container)
Creates aOVRTextureSwapChainDescinstance 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()
Description copied from class:StructReturns thesizeof(struct).
-
Type
public int Type()
Returns the value of theTypefield.
-
Format
public int Format()
Returns the value of theFormatfield.
-
ArraySize
public int ArraySize()
Returns the value of theArraySizefield.
-
Width
public int Width()
Returns the value of theWidthfield.
-
Height
public int Height()
Returns the value of theHeightfield.
-
MipLevels
public int MipLevels()
Returns the value of theMipLevelsfield.
-
SampleCount
public int SampleCount()
Returns the value of theSampleCountfield.
-
StaticImage
public boolean StaticImage()
Returns the value of theStaticImagefield.
-
MiscFlags
public int MiscFlags()
Returns the value of theMiscFlagsfield.
-
BindFlags
public int BindFlags()
Returns the value of theBindFlagsfield.
-
Type
public OVRTextureSwapChainDesc Type(int value)
Sets the specified value to theTypefield.
-
Format
public OVRTextureSwapChainDesc Format(int value)
Sets the specified value to theFormatfield.
-
ArraySize
public OVRTextureSwapChainDesc ArraySize(int value)
Sets the specified value to theArraySizefield.
-
Width
public OVRTextureSwapChainDesc Width(int value)
Sets the specified value to theWidthfield.
-
Height
public OVRTextureSwapChainDesc Height(int value)
Sets the specified value to theHeightfield.
-
MipLevels
public OVRTextureSwapChainDesc MipLevels(int value)
Sets the specified value to theMipLevelsfield.
-
SampleCount
public OVRTextureSwapChainDesc SampleCount(int value)
Sets the specified value to theSampleCountfield.
-
StaticImage
public OVRTextureSwapChainDesc StaticImage(boolean value)
Sets the specified value to theStaticImagefield.
-
MiscFlags
public OVRTextureSwapChainDesc MiscFlags(int value)
Sets the specified value to theMiscFlagsfield.
-
BindFlags
public OVRTextureSwapChainDesc BindFlags(int value)
Sets the specified value to theBindFlagsfield.
-
set
public OVRTextureSwapChainDesc set(int Type, int Format, int ArraySize, int Width, int Height, int MipLevels, int SampleCount, boolean StaticImage, int MiscFlags, int BindFlags)
Initializes this struct with the specified values.
-
nset
public OVRTextureSwapChainDesc nset(long struct)
Unsafe version ofset.
-
set
public OVRTextureSwapChainDesc set(OVRTextureSwapChainDesc src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static OVRTextureSwapChainDesc malloc()
Returns a newOVRTextureSwapChainDescinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRTextureSwapChainDesc calloc()
Returns a newOVRTextureSwapChainDescinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRTextureSwapChainDesc create()
Returns a newOVRTextureSwapChainDescinstance allocated withBufferUtils.
-
create
public static OVRTextureSwapChainDesc create(long address)
Returns a newOVRTextureSwapChainDescinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static OVRTextureSwapChainDesc.Buffer malloc(int capacity)
Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRTextureSwapChainDesc.Buffer calloc(int capacity)
Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRTextureSwapChainDesc.Buffer create(int capacity)
Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRTextureSwapChainDesc.Buffer create(long address, int capacity)
Create aOVRTextureSwapChainDesc.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static OVRTextureSwapChainDesc mallocStack()
Returns a newOVRTextureSwapChainDescinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRTextureSwapChainDesc callocStack()
Returns a newOVRTextureSwapChainDescinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRTextureSwapChainDesc mallocStack(MemoryStack stack)
Returns a newOVRTextureSwapChainDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRTextureSwapChainDesc callocStack(MemoryStack stack)
Returns a newOVRTextureSwapChainDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRTextureSwapChainDesc.Buffer mallocStack(int capacity)
Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRTextureSwapChainDesc.Buffer callocStack(int capacity)
Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRTextureSwapChainDesc.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRTextureSwapChainDesc.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-