mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
Direct3D11 Engine/source changes
This commit is contained in:
parent
3a9b50f702
commit
41e5caf22b
81 changed files with 1291 additions and 617 deletions
|
|
@ -70,6 +70,7 @@ GFXVertexFormat::GFXVertexFormat()
|
|||
mHasColor( false ),
|
||||
mHasNormal( false ),
|
||||
mHasTangent( false ),
|
||||
mHasInstancing( false ),
|
||||
mTexCoordCount( 0 ),
|
||||
mSizeInBytes( 0 ),
|
||||
mDecl( NULL )
|
||||
|
|
@ -83,6 +84,7 @@ void GFXVertexFormat::copy( const GFXVertexFormat &format )
|
|||
mHasNormal = format.mHasNormal;
|
||||
mHasTangent = format.mHasTangent;
|
||||
mHasColor = format.mHasColor;
|
||||
mHasInstancing = format.mHasInstancing;
|
||||
mTexCoordCount = format.mTexCoordCount;
|
||||
mSizeInBytes = format.mSizeInBytes;
|
||||
mDescription = format.mDescription;
|
||||
|
|
@ -161,6 +163,14 @@ bool GFXVertexFormat::hasColor() const
|
|||
return mHasColor;
|
||||
}
|
||||
|
||||
bool GFXVertexFormat::hasInstancing() const
|
||||
{
|
||||
if (mDirty)
|
||||
const_cast<GFXVertexFormat*>(this)->_updateDirty();
|
||||
|
||||
return mHasInstancing;
|
||||
}
|
||||
|
||||
U32 GFXVertexFormat::getTexCoordCount() const
|
||||
{
|
||||
if ( mDirty )
|
||||
|
|
@ -177,6 +187,11 @@ U32 GFXVertexFormat::getSizeInBytes() const
|
|||
return mSizeInBytes;
|
||||
}
|
||||
|
||||
void GFXVertexFormat::enableInstancing()
|
||||
{
|
||||
mHasInstancing = true;
|
||||
}
|
||||
|
||||
void GFXVertexFormat::_updateDirty()
|
||||
{
|
||||
PROFILE_SCOPE( GFXVertexFormat_updateDirty );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue