Added a way to retrieve texture handles from texture indices
This commit is contained in:
parent
976c220145
commit
4721a133e1
|
@ -129,6 +129,21 @@ namespace SHADE
|
|||
/* Getter Functions */
|
||||
/*-----------------------------------------------------------------------------*/
|
||||
Handle<SHVkDescriptorSetGroup> GetTextureDescriptorSetGroup() const noexcept { return texDescriptors; }
|
||||
/***************************************************************************/
|
||||
/*!
|
||||
*
|
||||
\brief
|
||||
Retrieves the texture handle at the specified texture index.
|
||||
|
||||
\param textureId
|
||||
Index of the texture to look for.
|
||||
|
||||
\returns
|
||||
Handle to the texture
|
||||
|
||||
*/
|
||||
/***************************************************************************/
|
||||
Handle<SHTexture> GetTextureHandle(SHTexture::Index textureId) const { return texOrder[textureId]; };
|
||||
|
||||
private:
|
||||
/*-----------------------------------------------------------------------------*/
|
||||
|
|
Loading…
Reference in New Issue