1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/angle/src/libGLESv2/renderer/ShaderExecutable11.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,47 @@ 1.4 +// 1.5 +// Copyright (c) 2012-2013 The ANGLE Project Authors. All rights reserved. 1.6 +// Use of this source code is governed by a BSD-style license that can be 1.7 +// found in the LICENSE file. 1.8 +// 1.9 + 1.10 +// ShaderExecutable11.h: Defines a D3D11-specific class to contain shader 1.11 +// executable implementation details. 1.12 + 1.13 +#ifndef LIBGLESV2_RENDERER_SHADEREXECUTABLE11_H_ 1.14 +#define LIBGLESV2_RENDERER_SHADEREXECUTABLE11_H_ 1.15 + 1.16 +#include "libGLESv2/renderer/ShaderExecutable.h" 1.17 + 1.18 +namespace rx 1.19 +{ 1.20 + 1.21 +class ShaderExecutable11 : public ShaderExecutable 1.22 +{ 1.23 + public: 1.24 + ShaderExecutable11(const void *function, size_t length, ID3D11PixelShader *executable); 1.25 + ShaderExecutable11(const void *function, size_t length, ID3D11VertexShader *executable); 1.26 + ShaderExecutable11(const void *function, size_t length, ID3D11GeometryShader *executable); 1.27 + 1.28 + virtual ~ShaderExecutable11(); 1.29 + 1.30 + static ShaderExecutable11 *makeShaderExecutable11(ShaderExecutable *executable); 1.31 + 1.32 + ID3D11PixelShader *getPixelShader() const; 1.33 + ID3D11VertexShader *getVertexShader() const; 1.34 + ID3D11GeometryShader *getGeometryShader() const; 1.35 + 1.36 + ID3D11Buffer *getConstantBuffer(ID3D11Device *device, unsigned int registerCount); 1.37 + 1.38 + private: 1.39 + DISALLOW_COPY_AND_ASSIGN(ShaderExecutable11); 1.40 + 1.41 + ID3D11PixelShader *mPixelExecutable; 1.42 + ID3D11VertexShader *mVertexExecutable; 1.43 + ID3D11GeometryShader *mGeometryExecutable; 1.44 + 1.45 + ID3D11Buffer *mConstantBuffer; 1.46 +}; 1.47 + 1.48 +} 1.49 + 1.50 +#endif // LIBGLESV2_RENDERER_SHADEREXECUTABLE11_H_