summaryrefslogtreecommitdiffstats
path: root/gfx/angle/checkout/src/libANGLE/renderer/d3d/DynamicImage2DHLSL.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/angle/checkout/src/libANGLE/renderer/d3d/DynamicImage2DHLSL.h')
-rw-r--r--gfx/angle/checkout/src/libANGLE/renderer/d3d/DynamicImage2DHLSL.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/gfx/angle/checkout/src/libANGLE/renderer/d3d/DynamicImage2DHLSL.h b/gfx/angle/checkout/src/libANGLE/renderer/d3d/DynamicImage2DHLSL.h
new file mode 100644
index 0000000000..761730176d
--- /dev/null
+++ b/gfx/angle/checkout/src/libANGLE/renderer/d3d/DynamicImage2DHLSL.h
@@ -0,0 +1,39 @@
+//
+// Copyright 2019 The ANGLE Project Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+// DynamicImage2DHLSL.h: Interface for link and run-time HLSL generation
+//
+
+#ifndef LIBANGLE_RENDERER_D3D_DYNAMICIMAGE2DHLSL_H_
+#define LIBANGLE_RENDERER_D3D_DYNAMICIMAGE2DHLSL_H_
+
+#include "common/angleutils.h"
+#include "libANGLE/renderer/d3d/RendererD3D.h"
+
+namespace rx
+{
+std::string generateShaderForImage2DBindSignature(
+ const d3d::Context *context,
+ ProgramD3D &programD3D,
+ const gl::ProgramState &programData,
+ gl::ShaderType shaderType,
+ std::vector<sh::Uniform> &image2DUniforms,
+ const gl::ImageUnitTextureTypeMap &image2DBindLayout);
+
+inline std::string GenerateComputeShaderForImage2DBindSignature(
+ const d3d::Context *context,
+ ProgramD3D &programD3D,
+ const gl::ProgramState &programData,
+ std::vector<sh::Uniform> &image2DUniforms,
+ const gl::ImageUnitTextureTypeMap &image2DBindLayout)
+{
+ return generateShaderForImage2DBindSignature(context, programD3D, programData,
+ gl::ShaderType::Compute, image2DUniforms,
+ image2DBindLayout);
+}
+
+} // namespace rx
+
+#endif // LIBANGLE_RENDERER_D3D_DYNAMICHLSL_H_