diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2018-04-17 16:59:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-17 16:59:03 -0400 |
| commit | 00389a127af8db18a3ec8fe7ad2dd114a65ac024 (patch) | |
| tree | 7fa57f2f30a399f03a7967a8534eb212744de5cc /tools/render-test/slang-support.h | |
| parent | 15bff9162530113b426664eb0c1deb7ea9e3a90d (diff) | |
Feature/renderer binding (#489)
* Dx12 rendering works in test framework.
* Turn on dx12 render tests.
* First pass at Resource and TextureResource/BufferResource types.
* Fix bug in Dx11 impl for BufferResource.
* Dx12 supports TextureResource and binds using TextureResource type, and all tests pass.
* Added TextureBuffer::Size type to make handling mips a little simpler.
* Small improvements to Dx12 constant buffer binding
Removed k prefix on an enum
* First pass impl of dx11 createTextureResource
Added setDefaults to TextureResource::Desc and BufferResource::Desc to simplify setup
accessFlags -> cpuAccessFlags
desc -> srcDesc
* Split out generateTextureResource - can produce the texture using createTextureResource on the Renderer.
* Added support for read mapping to Dx11
accessFlags -> cpuAccessFlags
First pass at using TextureResource/BufferResource on Dx11
Some tests fail with this checkin
* TextureResource working on all tests on dx11.
* Construct ResourceBuffers on Dx11 and Dx12 using utility function createInputBufferResource.
* First pass at OpenGl TextureResource
* Small fixes to dx12 and dx11 setup.
Gl working working using BufferResource and TextureResource
* Tidy up around the compareSampler - looks like the previous test was incorrect.
* Small documentation /naming improvements.
* Fix some more small documentation issues.
Diffstat (limited to 'tools/render-test/slang-support.h')
| -rw-r--r-- | tools/render-test/slang-support.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/render-test/slang-support.h b/tools/render-test/slang-support.h index d2e32c52a..b5b56c295 100644 --- a/tools/render-test/slang-support.h +++ b/tools/render-test/slang-support.h @@ -5,6 +5,8 @@ #include <slang.h> +#include "shader-input-layout.h" + namespace renderer_test { ShaderCompiler* createSlangShaderCompiler( @@ -12,4 +14,10 @@ ShaderCompiler* createSlangShaderCompiler( SlangSourceLanguage sourceLanguage, SlangCompileTarget target); + /// Create the texture resource using the renderer +SlangResult generateTextureResource(const InputTextureDesc& inputDesc, int bindFlags, Renderer* renderer, Slang::RefPtr<TextureResource>& textureOut); + + /// Create the buffer resource using the renderer +SlangResult createInputBufferResource(const InputBufferDesc& inputDesc, bool isOutput, size_t bufferSize, const void* initData, Renderer* renderer, Slang::RefPtr<BufferResource>& bufferOut); + } // renderer_test |
