mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Direct3D11 Engine/source changes
This commit is contained in:
parent
3a9b50f702
commit
41e5caf22b
81 changed files with 1291 additions and 617 deletions
|
|
@ -35,7 +35,8 @@ bool GFXShader::smLogWarnings = true;
|
|||
|
||||
GFXShader::GFXShader()
|
||||
: mPixVersion( 0.0f ),
|
||||
mReloadKey( 0 )
|
||||
mReloadKey( 0 ),
|
||||
mInstancingFormat( NULL )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -43,6 +44,8 @@ GFXShader::~GFXShader()
|
|||
{
|
||||
Torque::FS::RemoveChangeNotification( mVertexFile, this, &GFXShader::_onFileChanged );
|
||||
Torque::FS::RemoveChangeNotification( mPixelFile, this, &GFXShader::_onFileChanged );
|
||||
|
||||
SAFE_DELETE(mInstancingFormat);
|
||||
}
|
||||
|
||||
#ifndef TORQUE_OPENGL
|
||||
|
|
@ -60,8 +63,16 @@ bool GFXShader::init( const Torque::Path &vertFile,
|
|||
const Torque::Path &pixFile,
|
||||
F32 pixVersion,
|
||||
const Vector<GFXShaderMacro> ¯os,
|
||||
const Vector<String> &samplerNames)
|
||||
const Vector<String> &samplerNames,
|
||||
GFXVertexFormat *instanceFormat)
|
||||
{
|
||||
// Take care of instancing
|
||||
if (instanceFormat)
|
||||
{
|
||||
mInstancingFormat = new GFXVertexFormat;
|
||||
mInstancingFormat->copy(*instanceFormat);
|
||||
}
|
||||
|
||||
// Store the inputs for use in reloading.
|
||||
mVertexFile = vertFile;
|
||||
mPixelFile = pixFile;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue