summaryrefslogtreecommitdiffstats
path: root/tools/gfx/d3d11/d3d11-base.h
blob: 084654991089d5cb2905fec8bf24b36641507d82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// d3d11-base.h
// Shared header file for D3D11 implementation
#pragma once

#include "../d3d/d3d-swapchain.h"
#include "../d3d/d3d-util.h"
#include "../flag-combiner.h"
#include "../immediate-renderer-base.h"
#include "../mutable-shader-object.h"
#include "../nvapi/nvapi-util.h"
#include "core/slang-basic.h"
#include "core/slang-blob.h"
#include "slang-com-ptr.h"

#pragma push_macro("WIN32_LEAN_AND_MEAN")
#pragma push_macro("NOMINMAX")
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#undef NOMINMAX
#define NOMINMAX
#include <windows.h>
#pragma pop_macro("NOMINMAX")
#pragma pop_macro("WIN32_LEAN_AND_MEAN")

#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;
} // namespace d3d11
} // namespace gfx