OGRE-Next
3.0.0
Object-Oriented Graphics Rendering Engine
|
Descriptor sets describe what textures should be bound together in one place. More...
#include <OgreDescriptorSetTexture.h>
Public Member Functions | |
DescriptorSetTexture () | |
void | checkValidity () const |
bool | operator!= (const DescriptorSetTexture &other) const |
Warning: This operator won't see changes in SRVs (i.e. More... | |
bool | operator< (const DescriptorSetTexture &other) const |
Public Attributes | |
uint16 | mRefCount |
void * | mRsData |
Render-System specific data. More... | |
uint16 | mShaderTypeTexCount [NumShaderTypes] |
FastArray< const TextureGpu * > | mTextures |
Descriptor sets describe what textures should be bound together in one place.
They must be pushed to mTexture in the order of ShaderType. For example if you want to use 2 textures bound to the pixel shader stage and 1 in the Geometry Shader stage: DescriptorSetTexture descSet; descSet.mTextures.push_back( pixelShaderTex0 ); descSet.mTextures.push_back( pixelShaderTex1 ); descSet.mTextures.push_back( geometryShaderTex1 ); descSet.mShaderTypeTexCount[PixelShader] = 2u; descSet.mShaderTypeTexCount[GeometryShader] = 1u;
const DescriptorSetTexture *finalSet = hlmsManager->getDescriptorSet( descSet ); finalSet can be used with RenderSystem::_setTextures
Remove finalSet once you're done using it. hlmsManager->destroyDescriptorSet( finalSet ); finalSet = 0;
|
inline |
void Ogre::DescriptorSetTexture::checkValidity | ( | ) | const |
|
inline |
Warning: This operator won't see changes in SRVs (i.e.
data baked into mRsData). If you get notifyTextureChanged call, the SRV has changed and you must assume the DescriptorSetTexture has changed. SRV = Shader Resource View.
References mShaderTypeTexCount, mTextures, Ogre::NumShaderTypes, and Ogre::FastArray< T >::size().
|
inline |
References mShaderTypeTexCount, mTextures, Ogre::NumShaderTypes, and Ogre::FastArray< T >::size().
uint16 Ogre::DescriptorSetTexture::mRefCount |
void* Ogre::DescriptorSetTexture::mRsData |
Render-System specific data.
uint16 Ogre::DescriptorSetTexture::mShaderTypeTexCount[NumShaderTypes] |
Referenced by operator!=(), and operator<().
FastArray<const TextureGpu *> Ogre::DescriptorSetTexture::mTextures |
Referenced by operator!=(), and operator<().