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,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRTextureSwapChainDesc extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescription used to create a texture swap chain.Member documentation
Type– must be:Texture_2DFormat– one of:ArraySize– must be 6 forTexture_Cube, 1 for other typesStaticImage– not buffered in a chain. For images that don't changeMiscFlags–ovrTextureFlags. One or more of:TextureMisc_NoneTextureMisc_DX_TypelessTextureMisc_AllowGenerateMipsTextureMisc_ProtectedContentTextureMisc_AutoGenerateMipsBindFlags–ovrTextureBindFlags. Not used for GL. One or more of:TextureBind_NoneTextureBind_DX_RenderTargetTextureBind_DX_UnorderedAccessTextureBind_DX_DepthStencil
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 Description static classOVRTextureSwapChainDesc.BufferAn array ofOVRTextureSwapChainDescstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intARRAYSIZE
BINDFLAGS
FORMAT
HEIGHT
MIPLEVELS
MISCFLAGS
SAMPLECOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTATICIMAGE
TYPE
WIDTHThe struct member offsets.
-
Constructor Summary
Constructors Constructor 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 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, org.lwjgl.system.MemoryStack stack)Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTextureSwapChainDesccallocStack(org.lwjgl.system.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.static OVRTextureSwapChainDesc.Buffercreate(long address, int capacity)Create aOVRTextureSwapChainDesc.Bufferinstance at the specified memory.static OVRTextureSwapChainDesccreateSafe(long address)static OVRTextureSwapChainDesc.BuffercreateSafe(long address, int capacity)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, org.lwjgl.system.MemoryStack stack)Returns a newOVRTextureSwapChainDesc.Bufferinstance allocated on the specifiedMemoryStack.static OVRTextureSwapChainDescmallocStack(org.lwjgl.system.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.static intnArraySize(long struct)Unsafe version ofArraySize().static voidnArraySize(long struct, int value)Unsafe version ofArraySize.static intnBindFlags(long struct)Unsafe version ofBindFlags().static voidnBindFlags(long struct, int value)Unsafe version ofBindFlags.static intnFormat(long struct)Unsafe version ofFormat().static voidnFormat(long struct, int value)Unsafe version ofFormat.static intnHeight(long struct)Unsafe version ofHeight().static voidnHeight(long struct, int value)Unsafe version ofHeight.static intnMipLevels(long struct)Unsafe version ofMipLevels().static voidnMipLevels(long struct, int value)Unsafe version ofMipLevels.static intnMiscFlags(long struct)Unsafe version ofMiscFlags().static voidnMiscFlags(long struct, int value)Unsafe version ofMiscFlags.static intnSampleCount(long struct)Unsafe version ofSampleCount().static voidnSampleCount(long struct, int value)Unsafe version ofSampleCount.static booleannStaticImage(long struct)Unsafe version ofStaticImage().static voidnStaticImage(long struct, boolean value)Unsafe version ofStaticImage.static intnType(long struct)Unsafe version ofType().static voidnType(long struct, int value)Unsafe version ofType.static intnWidth(long struct)Unsafe version ofWidth().static voidnWidth(long struct, int value)Unsafe version ofWidth.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()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.
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.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.
-
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.
-
createSafe
@Nullable public static OVRTextureSwapChainDesc createSafe(long address)
-
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
-
createSafe
@Nullable public static OVRTextureSwapChainDesc.Buffer createSafe(long address, int 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(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureSwapChainDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRTextureSwapChainDesc callocStack(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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
-
nType
public static int nType(long struct)
Unsafe version ofType().
-
nFormat
public static int nFormat(long struct)
Unsafe version ofFormat().
-
nArraySize
public static int nArraySize(long struct)
Unsafe version ofArraySize().
-
nWidth
public static int nWidth(long struct)
Unsafe version ofWidth().
-
nHeight
public static int nHeight(long struct)
Unsafe version ofHeight().
-
nMipLevels
public static int nMipLevels(long struct)
Unsafe version ofMipLevels().
-
nSampleCount
public static int nSampleCount(long struct)
Unsafe version ofSampleCount().
-
nStaticImage
public static boolean nStaticImage(long struct)
Unsafe version ofStaticImage().
-
nMiscFlags
public static int nMiscFlags(long struct)
Unsafe version ofMiscFlags().
-
nBindFlags
public static int nBindFlags(long struct)
Unsafe version ofBindFlags().
-
nType
public static void nType(long struct, int value)Unsafe version ofType.
-
nFormat
public static void nFormat(long struct, int value)Unsafe version ofFormat.
-
nArraySize
public static void nArraySize(long struct, int value)Unsafe version ofArraySize.
-
nWidth
public static void nWidth(long struct, int value)Unsafe version ofWidth.
-
nHeight
public static void nHeight(long struct, int value)Unsafe version ofHeight.
-
nMipLevels
public static void nMipLevels(long struct, int value)Unsafe version ofMipLevels.
-
nSampleCount
public static void nSampleCount(long struct, int value)Unsafe version ofSampleCount.
-
nStaticImage
public static void nStaticImage(long struct, boolean value)Unsafe version ofStaticImage.
-
nMiscFlags
public static void nMiscFlags(long struct, int value)Unsafe version ofMiscFlags.
-
nBindFlags
public static void nBindFlags(long struct, int value)Unsafe version ofBindFlags.
-
-