diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-02-09 23:06:00 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-02-09 23:06:00 +0000 |
| commit | 3c8fa483a325ff3f82ba23c5fc24c7a731761d17 (patch) | |
| tree | 17c541d746e474831bc923ddcb9aca7afa42e5ad /Tests/TestApp/src/TestSeparateTextureSampler.cpp | |
| parent | Updated core (fixed dynamic heap master block counting issue). (diff) | |
| download | DiligentEngine-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/TestSeparateTextureSampler.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestSeparateTextureSampler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/TestApp/src/TestSeparateTextureSampler.cpp b/Tests/TestApp/src/TestSeparateTextureSampler.cpp index ab55c94..26f48ef 100644 --- a/Tests/TestApp/src/TestSeparateTextureSampler.cpp +++ b/Tests/TestApp/src/TestSeparateTextureSampler.cpp @@ -114,7 +114,7 @@ TestSeparateTextureSampler::TestSeparateTextureSampler(IRenderDevice *pDevice, I TexDesc.Usage = USAGE_DEFAULT; TexDesc.BindFlags = BIND_SHADER_RESOURCE; RefCntAutoPtr<ITexture> pTexture; - pDevice->CreateTexture( TexDesc, TextureData(), &pTexture ); + pDevice->CreateTexture( TexDesc, nullptr, &pTexture ); RefCntAutoPtr<ISampler> pSampler; pDevice->CreateSampler( SamplerDesc{}, &pSampler ); @@ -148,7 +148,7 @@ TestSeparateTextureSampler::TestSeparateTextureSampler(IRenderDevice *pDevice, I RenderTargetDesc.Format = TEX_FORMAT_RGBA8_UNORM; RenderTargetDesc.Name = "TestSeparateTextureSampler: test render target"; RefCntAutoPtr<ITexture> pRenderTarget; - pDevice->CreateTexture(RenderTargetDesc, TextureData{}, &pRenderTarget); + pDevice->CreateTexture(RenderTargetDesc, nullptr, &pRenderTarget); ITextureView* pRTV[] = {pRenderTarget->GetDefaultView(TEXTURE_VIEW_RENDER_TARGET)}; pContext->SetRenderTargets(1, pRTV, nullptr, RESOURCE_STATE_TRANSITION_MODE_TRANSITION); |
