diff options
| author | lucy96chen <47800040+lucy96chen@users.noreply.github.com> | 2022-06-30 11:09:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-30 11:09:45 -0700 |
| commit | 5eee6b03c391d0bb6ed0ded2d8d91c2e525fdb97 (patch) | |
| tree | 0d47d3ebc385699ff195c8a19400dd3780107667 /tools/gfx/d3d11/d3d11-base.h | |
| parent | abc100f81d4b22229105f9ed569a7efafc653a3a (diff) | |
Split render-d3d11.cpp into smaller files (#2307)
* render-d3d11 split, does not compile
* Compiles but unit tests failing
* ran premake.bat
* Readded constructor code that was accidentally removed
Diffstat (limited to 'tools/gfx/d3d11/d3d11-base.h')
| -rw-r--r-- | tools/gfx/d3d11/d3d11-base.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/tools/gfx/d3d11/d3d11-base.h b/tools/gfx/d3d11/d3d11-base.h new file mode 100644 index 000000000..d47682f18 --- /dev/null +++ b/tools/gfx/d3d11/d3d11-base.h @@ -0,0 +1,70 @@ +// d3d11-base.h +// Shared header file for D3D11 implementation +#pragma once + +#include "../immediate-renderer-base.h" +#include "../d3d/d3d-util.h" +#include "../d3d/d3d-swapchain.h" +#include "../nvapi/nvapi-util.h" +#include "../mutable-shader-object.h" +#include "core/slang-basic.h" +#include "core/slang-blob.h" + +#include "slang-com-ptr.h" +#include "../flag-combiner.h" + +#define WIN32_LEAN_AND_MEAN +#define NOMINMAX +#include <Windows.h> +#undef WIN32_LEAN_AND_MEAN +#undef NOMINMAX + +#include <d3d11_2.h> +#include <d3dcompiler.h> + +#ifdef GFX_NVAPI +// NVAPI integration is described here +// https://developer.nvidia.com/unlocking-gpu-intrinsics-hlsl + +# include "../nvapi/nvapi-include.h" +#endif + +// We will use the C standard library just for printing error messages. +#include <stdio.h> + +#ifdef _MSC_VER +#include <stddef.h> +#if (_MSC_VER < 1900) +#define snprintf sprintf_s +#endif +#endif + +namespace gfx +{ +namespace d3d11 +{ + class DeviceImpl; + class ShaderProgramImpl; + class BufferResourceImpl; + class TextureResourceImpl; + class SamplerStateImpl; + class ResourceViewImpl; + class ShaderResourceViewImpl; + class UnorderedAccessViewImpl; + class DepthStencilViewImpl; + class RenderTargetViewImpl; + class FramebufferLayoutImpl; + class FramebufferImpl; + class SwapchainImpl; + class InputLayoutImpl; + class QueryPoolImpl; + class PipelineStateImpl; + class GraphicsPipelineStateImpl; + class ComputePipelineStateImpl; + class ShaderObjectLayoutImpl; + class RootShaderObjectLayoutImpl; + class ShaderObjectImpl; + class MutableShaderObjectImpl; + class RootShaderObjectImpl; +} +} |
