summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestTexturing.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-02-09 23:06:00 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-02-09 23:06:00 +0000
commit3c8fa483a325ff3f82ba23c5fc24c7a731761d17 (patch)
tree17c541d746e474831bc923ddcb9aca7afa42e5ad /Tests/TestApp/src/TestTexturing.cpp
parentUpdated core (fixed dynamic heap master block counting issue). (diff)
downloadDiligentEngine-3c8fa483a325ff3f82ba23c5fc24c7a731761d17.tar.gz
DiligentEngine-3c8fa483a325ff3f82ba23c5fc24c7a731761d17.zip
Replaced reference to initial data parameter with pointer in CreateTexture and CreateBuffer methods; updated light scattering implementation to not use lua
Diffstat (limited to 'Tests/TestApp/src/TestTexturing.cpp')
-rw-r--r--Tests/TestApp/src/TestTexturing.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/TestApp/src/TestTexturing.cpp b/Tests/TestApp/src/TestTexturing.cpp
index 8109c40..adbcbc3 100644
--- a/Tests/TestApp/src/TestTexturing.cpp
+++ b/Tests/TestApp/src/TestTexturing.cpp
@@ -161,7 +161,7 @@ void TestTexturing::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceContext
Diligent::BufferData BuffData;
BuffData.pData = Vertices;
BuffData.DataSize = BuffDesc.uiSizeInBytes;
- m_pRenderDevice->CreateBuffer(BuffDesc, BuffData, &m_pVertexBuff);
+ m_pRenderDevice->CreateBuffer(BuffDesc, &BuffData, &m_pVertexBuff);
}
auto PixelFormatAttribs = m_pRenderDevice->GetTextureFormatInfoExt(m_TextureFormat);
@@ -234,7 +234,7 @@ void TestTexturing::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceContext
TexData.pSubResources = SubResouces.data();
TexData.NumSubresources = (Uint32)SubResouces.size();
- m_pRenderDevice->CreateTexture( TexDesc, TexData, &m_pTexture );
+ m_pRenderDevice->CreateTexture( TexDesc, &TexData, &m_pTexture );
}
{
@@ -264,8 +264,8 @@ void TestTexturing::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceContext
LayoutElement Elems[] =
{
- LayoutElement( 0, 0, 3, Diligent::VT_FLOAT32, false, 0 ),
- LayoutElement( 1, 0, 2, Diligent::VT_FLOAT32, false, sizeof( float ) * 3 )
+ LayoutElement{ 0, 0, 3, Diligent::VT_FLOAT32, false, 0 },
+ LayoutElement{ 1, 0, 2, Diligent::VT_FLOAT32, false, sizeof( float ) * 3 }
};
PSODesc.GraphicsPipeline.InputLayout.LayoutElements = Elems;
PSODesc.GraphicsPipeline.InputLayout.NumElements = _countof( Elems );