NAP
Public Member Functions | Public Attributes | List of all members
SamplerCubeArray Class Reference

#include <sampler.h>

Public Member Functions

 SamplerCubeArray ()=default
 
 SamplerCubeArray (int inSize)
 
virtual int getNumElements () const override
 
- Public Member Functions inherited from Sampler
 Sampler ()=default
 
- Public Member Functions inherited from Resource
 Resource ()
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual bool init (utility::ErrorState &errorState)
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Public Attributes

std::vector< rtti::ObjectPtr< TextureCube > > mTextures
 Property: 'Textures' textures to bind, must be of the same length as the shader declaration. More...
 
- Public Attributes inherited from Sampler
std::string mName
 Property: 'Name' sampler shader name. More...
 
EFilterMode mMinFilter = EFilterMode::Linear
 Property: 'MinFilter' minimizing filter. More...
 
EFilterMode mMaxFilter = EFilterMode::Linear
 Property: 'MaxFilter' maximizing filter. More...
 
EFilterMode mMipMapMode = EFilterMode::Linear
 Property: 'MipMapMode' mip map mode. More...
 
EAddressMode mAddressModeVertical = EAddressMode::ClampToEdge
 Property: 'AddressModeVertical' vertical address mode. More...
 
EAddressMode mAddressModeHorizontal = EAddressMode::ClampToEdge
 Property: 'AddressModeHorizontal' horizontal address mode. More...
 
EAnisotropicSamples mMaxAnisotropy = EAnisotropicSamples::Default
 Property: 'AnisotropicSamples' max number of anisotropic filter samples. More...
 
EBorderColor mBorderColor = EBorderColor::IntOpaqueBlack
 Property: 'BorderColor' border color used for texture lookups. More...
 
EDepthCompareMode mCompareMode = EDepthCompareMode::LessOrEqual
 Property: 'DepthCompareMode' specifies the comparison operator to apply to sampled data. More...
 
bool mEnableCompare = false
 Property: 'EnableCompare' enables texture compare operations for this sampler. More...
 
float mLodBias = 0.0f
 Property: 'LodBias' bias value that is added to the LOD level. More...
 
uint32 mMinLodLevel = 0
 Property: 'MinLodLevel' minimum considered LOD, > 0 = exclude highest lod. More...
 
uint32 mMaxLodLevel = 1000
 Property: 'MaxLodLevel' max number of considered LODs, 0 = only consider highest lod. More...
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 

Description

Cube sampler array resource. Assigns multiple textures to a shader as an array. Note that number of textures must match the number of inputs on the shader. myshader.frag example:

uniform samplerCube textures[20]; //< array of 20 textures
Inheritance diagram for SamplerCubeArray:
[legend]
Collaboration diagram for SamplerCubeArray:
[legend]

Constructor & Destructor Documentation

◆ SamplerCubeArray() [1/2]

SamplerCubeArray ( )
default

◆ SamplerCubeArray() [2/2]

SamplerCubeArray ( int  inSize)

Member Function Documentation

◆ getNumElements()

virtual int getNumElements ( ) const
overridevirtual
Returns
The number of elements in this array

Implements SamplerArray.

Member Data Documentation

◆ mTextures

std::vector<rtti::ObjectPtr<TextureCube> > mTextures

Property: 'Textures' textures to bind, must be of the same length as the shader declaration.

nap::sampler::textures
constexpr const char * textures
Definition: sampler.h:28