C++ Java Unity
C++ Reference
MetalTextureUnit Class Reference

Detailed Description

Metal-specific texture unit.

MetalTextureUnit object passed to Vuforia to set the video background texture unit after updating the background image data. The fragment texture is set on the current render command encoder at the index specified by mTextureIndex.

Use with Renderer::updateVideoBackgroundTexture()

Inheritance diagram for MetalTextureUnit:
TextureUnit

Public Member Functions

 MetalTextureUnit (int textureIndex=0)
 Convenience constructor. More...
 
 ~MetalTextureUnit ()
 
virtual const void * buffer () const
 Get a pointer to the member data for the class. More...
 
- Public Member Functions inherited from TextureUnit
int type () const
 Get the type of data in use (one of Vuforia::INIT_FLAGS). More...
 

Public Attributes

int mTextureIndex
 

Additional Inherited Members

- Protected Member Functions inherited from TextureUnit
 TextureUnit (int type)
 Construct with a specific type (one of Vuforia::INIT_FLAGS). More...
 
 ~TextureUnit ()
 

Constructor & Destructor Documentation

MetalTextureUnit ( int  textureIndex = 0)

Convenience constructor.

Parameters
textureIndexThe index of this texture unit.

Member Function Documentation

virtual const void* buffer ( ) const
virtual

Get a pointer to the member data for the class.

Implements TextureUnit.

Member Data Documentation

int mTextureIndex