Support assembling texture arrays.
This commit is contained in:
@ -586,6 +586,12 @@ void DDSHeader::setTextureCube()
|
||||
this->header10.arraySize = 1;
|
||||
}
|
||||
|
||||
void DDSHeader::setTextureArray(int imageCount)
|
||||
{
|
||||
this->header10.resourceDimension = DDS_DIMENSION_TEXTURE2D;
|
||||
this->header10.arraySize = imageCount;
|
||||
}
|
||||
|
||||
void DDSHeader::setLinearSize(uint size)
|
||||
{
|
||||
this->flags &= ~DDSD_PITCH;
|
||||
|
@ -325,6 +325,7 @@ namespace nv
|
||||
void setTexture2D();
|
||||
void setTexture3D();
|
||||
void setTextureCube();
|
||||
void setTextureArray(int imageCount);
|
||||
void setLinearSize(uint size);
|
||||
void setPitch(uint pitch);
|
||||
void setFourCC(uint8 c0, uint8 c1, uint8 c2, uint8 c3);
|
||||
|
Reference in New Issue
Block a user