diff options
Diffstat (limited to 'Tests/TestApp/src/TestTexturing.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestTexturing.cpp | 8 |
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 ); |
