Home
last modified time | relevance | path

Searched refs:Shader (Results 1 – 25 of 168) sorted by relevance

1234567

/external/swiftshader/src/Shader/
DPixelShader.cpp23 PixelShader::PixelShader(const PixelShader *ps) : Shader() in PixelShader()
34 append(new sw::Shader::Instruction(*ps->getInstruction(i))); in PixelShader()
47 PixelShader::PixelShader(const unsigned long *token) : Shader() in PixelShader()
92 Shader::Opcode opcode = (Shader::Opcode)(token[i] & 0x0000FFFF); in validate()
96 case Shader::OPCODE_RESERVED0: in validate()
97 case Shader::OPCODE_MOVA: in validate()
141 void PixelShader::setInput(int inputIdx, int nbComponents, const sw::Shader::Semantic& semantic) in setInput()
149 const sw::Shader::Semantic& PixelShader::getInput(int inputIdx, int component) const in getInput()
172 if(instruction[i]->opcode == Shader::OPCODE_TEXM3X2DEPTH || in analyzeZOverride()
173 instruction[i]->opcode == Shader::OPCODE_TEXDEPTH || in analyzeZOverride()
[all …]
DVertexShader.cpp24 VertexShader::VertexShader(const VertexShader *vs) : Shader() in VertexShader()
43 append(new sw::Shader::Instruction(*vs->getInstruction(i))); in VertexShader()
60 VertexShader::VertexShader(const unsigned long *token) : Shader() in VertexShader()
112 Shader::Opcode opcode = (Shader::Opcode)(token[i] & 0x0000FFFF); in validate()
116 case Shader::OPCODE_TEXCOORD: in validate()
117 case Shader::OPCODE_TEXKILL: in validate()
118 case Shader::OPCODE_TEX: in validate()
119 case Shader::OPCODE_TEXBEM: in validate()
120 case Shader::OPCODE_TEXBEML: in validate()
121 case Shader::OPCODE_TEXREG2AR: in validate()
[all …]
DVertexProgram.cpp116 const Shader::Instruction *instruction = shader->getInstruction(i); in program()
117 Shader::Opcode opcode = instruction->opcode; in program()
119 if(opcode == Shader::OPCODE_CALL || opcode == Shader::OPCODE_CALLNZ) in program()
130 const Shader::Instruction *instruction = shader->getInstruction(i); in program()
131 Shader::Opcode opcode = instruction->opcode; in program()
133 …if(opcode == Shader::OPCODE_DCL || opcode == Shader::OPCODE_DEF || opcode == Shader::OPCODE_DEFI |… in program()
147 bool integer = dst.type == Shader::PARAMETER_ADDR; in program()
157 if(src0.type != Shader::PARAMETER_VOID) s0 = fetchRegister(src0); in program()
158 if(src1.type != Shader::PARAMETER_VOID) s1 = fetchRegister(src1); in program()
159 if(src2.type != Shader::PARAMETER_VOID) s2 = fetchRegister(src2); in program()
[all …]
DPixelProgram.cpp85 const Shader::Instruction *instruction = shader->getInstruction(i); in applyShader()
86 Shader::Opcode opcode = instruction->opcode; in applyShader()
88 if(opcode == Shader::OPCODE_CALL || opcode == Shader::OPCODE_CALLNZ) in applyShader()
101 const Shader::Instruction *instruction = shader->getInstruction(i); in applyShader()
102 Shader::Opcode opcode = instruction->opcode; in applyShader()
104 …if(opcode == Shader::OPCODE_DCL || opcode == Shader::OPCODE_DEF || opcode == Shader::OPCODE_DEFI |… in applyShader()
129 if(opcode == Shader::OPCODE_TEXKILL) // Takes destination as input in applyShader()
131 if(dst.type == Shader::PARAMETER_TEXTURE) in applyShader()
144 if(src0.type != Shader::PARAMETER_VOID) s0 = fetchRegister(src0); in applyShader()
145 if(src1.type != Shader::PARAMETER_VOID) s1 = fetchRegister(src1); in applyShader()
[all …]
DShader.cpp29 volatile int Shader::serialCounter = 1;
31 Shader::Opcode Shader::OPCODE_DP(int i) in OPCODE_DP()
43 Shader::Opcode Shader::OPCODE_LEN(int i) in OPCODE_LEN()
55 Shader::Opcode Shader::OPCODE_DIST(int i) in OPCODE_DIST()
67 Shader::Opcode Shader::OPCODE_NRM(int i) in OPCODE_NRM()
79 Shader::Opcode Shader::OPCODE_FORWARD(int i) in OPCODE_FORWARD()
91 Shader::Opcode Shader::OPCODE_REFLECT(int i) in OPCODE_REFLECT()
103 Shader::Opcode Shader::OPCODE_REFRACT(int i) in OPCODE_REFRACT()
115 Shader::Instruction::Instruction(Opcode opcode) : opcode(opcode), analysis(0) in Instruction()
129Shader::Instruction::Instruction(const unsigned long *token, int size, unsigned char majorVersion)… in Instruction()
[all …]
DPixelPipeline.cpp74 const Shader::Instruction *instruction = shader->getInstruction(i); in applyShader()
75 Shader::Opcode opcode = instruction->opcode; in applyShader()
81 …if(opcode == Shader::OPCODE_DCL || opcode == Shader::OPCODE_DEF || opcode == Shader::OPCODE_DEFI |… in applyShader()
100 if(src0.type != Shader::PARAMETER_VOID) s0 = fetchRegister(src0); in applyShader()
101 if(src1.type != Shader::PARAMETER_VOID) s1 = fetchRegister(src1); in applyShader()
102 if(src2.type != Shader::PARAMETER_VOID) s2 = fetchRegister(src2); in applyShader()
111 case Shader::OPCODE_PS_1_0: break; in applyShader()
112 case Shader::OPCODE_PS_1_1: break; in applyShader()
113 case Shader::OPCODE_PS_1_2: break; in applyShader()
114 case Shader::OPCODE_PS_1_3: break; in applyShader()
[all …]
/external/swiftshader/src/OpenGL/compiler/
DOutputASM.cpp217 sw::PixelShader *Shader::getPixelShader() const in getPixelShader()
222 sw::VertexShader *Shader::getVertexShader() const in getVertexShader()
307 …OutputASM::OutputASM(TParseContext &context, Shader *shaderObject) : TIntermTraverser(true, true, … in OutputASM()
337 Instruction *callMain = emit(sw::Shader::OPCODE_CALL); in output()
338 callMain->dst.type = sw::Shader::PARAMETER_LABEL; in output()
341 emit(sw::Shader::OPCODE_RET); in output()
360 sw::Shader::Opcode OutputASM::getOpcode(sw::Shader::Opcode op, TIntermTyped *in) const in getOpcode()
366 case sw::Shader::OPCODE_NEG: in getOpcode()
371 return sw::Shader::OPCODE_INEG; in getOpcode()
376 case sw::Shader::OPCODE_ABS: in getOpcode()
[all …]
DOutputASM.h29 class Shader; variable
180 class Shader
184 virtual ~Shader() {}; in ~Shader()
185 virtual sw::Shader *getShader() const = 0;
212 typedef sw::Shader::Instruction Instruction;
219 explicit OutputASM(TParseContext &context, Shader *shaderObject);
263 sw::Shader::Opcode getOpcode(sw::Shader::Opcode op, TIntermTyped *in) const;
264 …Instruction *emit(sw::Shader::Opcode op, TIntermTyped *dst = 0, TIntermNode *src0 = 0, TIntermNode…
265 …Instruction *emit(sw::Shader::Opcode op, TIntermTyped *dst, int dstIndex, TIntermNode *src0 = 0, i…
269 …void emitBinary(sw::Shader::Opcode op, TIntermTyped *dst = 0, TIntermNode *src0 = 0, TIntermNode *…
[all …]
/external/swiftshader/src/OpenGL/libGL/
DShader.cpp28 bool Shader::compilerInitialized = false;
30 Shader::Shader(ResourceManager *manager, GLuint handle) : mHandle(handle), mResourceManager(manager) in Shader() function in gl::Shader
40 Shader::~Shader() in ~Shader()
45 GLuint Shader::getName() const in getName()
50 void Shader::setSource(GLsizei count, const char *const *string, const GLint *length) in setSource()
90 int Shader::getInfoLogLength() const in getInfoLogLength()
102 void Shader::getInfoLog(GLsizei bufSize, GLsizei *length, char *infoLogOut) in getInfoLog()
123 int Shader::getSourceLength() const in getSourceLength()
135 void Shader::getSource(GLsizei bufSize, GLsizei *length, char *source) in getSource()
156 TranslatorASM *Shader::createCompiler(GLenum shaderType) in createCompiler()
[all …]
DShader.h44 class Shader : public glsl::Shader
49 Shader(ResourceManager *manager, GLuint handle);
51 virtual ~Shader();
95 class VertexShader : public Shader
107 virtual sw::Shader *getShader() const;
117 class FragmentShader : public Shader
126 virtual sw::Shader *getShader() const;
/external/swiftshader/src/OpenGL/libGLESv2/
DShader.cpp29 bool Shader::compilerInitialized = false;
31 Shader::Shader(ResourceManager *manager, GLuint handle) : mHandle(handle), mResourceManager(manager) in Shader() function in es2::Shader
41 Shader::~Shader() in ~Shader()
46 GLuint Shader::getName() const in getName()
51 void Shader::setSource(GLsizei count, const char *const *string, const GLint *length) in setSource()
91 size_t Shader::getInfoLogLength() const in getInfoLogLength()
103 void Shader::getInfoLog(GLsizei bufSize, GLsizei *length, char *infoLogOut) in getInfoLog()
124 size_t Shader::getSourceLength() const in getSourceLength()
136 void Shader::getSource(GLsizei bufSize, GLsizei *length, char *source) in getSource()
157 TranslatorASM *Shader::createCompiler(GLenum shaderType) in createCompiler()
[all …]
DShader.h41 class Shader : public glsl::Shader
46 Shader(ResourceManager *manager, GLuint handle);
48 virtual ~Shader();
92 class VertexShader : public Shader
104 virtual sw::Shader *getShader() const;
114 class FragmentShader : public Shader
123 virtual sw::Shader *getShader() const;
/external/swiftshader/src/
DAndroid.mk10 $(LOCAL_PATH)/Shader/ \
88 Shader/Constants.cpp \
89 Shader/PixelPipeline.cpp \
90 Shader/PixelProgram.cpp \
91 Shader/PixelRoutine.cpp \
92 Shader/PixelShader.cpp \
93 Shader/SamplerCore.cpp \
94 Shader/SetupRoutine.cpp \
95 Shader/Shader.cpp \
96 Shader/ShaderCore.cpp \
[all …]
/external/deqp/modules/gles31/functional/
Des31fProgramInterfaceDefinition.hpp63 class Shader class
74 Shader (glu::ShaderType type, glu::GLSLVersion version);
75 ~Shader (void);
77 Shader (const Shader&);
78 Shader& operator= (const Shader&);
93 Shader* addShader (glu::ShaderType type, glu::GLSLVersion version);
98 const std::vector<Shader*>& getShaders (void) const;
120 std::vector<Shader*> m_shaders;
/external/deqp/framework/referencerenderer/
DrrShaders.hpp202 template<class Shader>
206 VertexShaderLoop (const Shader& shader) : m_shader(shader) {} in VertexShaderLoop()
211 const Shader& m_shader;
214 template<class Shader>
215 void VertexShaderLoop<Shader>::shadeVertices (const VertexAttrib* inputs, VertexPacket* packets, co… in shadeVertices()
221 template<class Shader>
225 FragmentShaderLoop (const Shader& shader) : m_shader(shader) {} in FragmentShaderLoop()
230 const Shader& m_shader;
233 template<class Shader>
234 void FragmentShaderLoop<Shader>::shadeFragments (FragmentPacket* packets, const int numPackets) con… in shadeFragments()
/external/deqp/framework/randomshaders/
DrsgShader.cpp67 Shader::Shader (Type type) in Shader() function in rsg::Shader
73 Shader::~Shader (void) in ~Shader()
81 void Shader::getOutputs (vector<const Variable*>& outputs) const in getOutputs()
93 void Shader::tokenize (GeneratorState& state, TokenStream& str) const in tokenize()
96 if (state.getShader().getType() == Shader::TYPE_FRAGMENT) in tokenize()
115 void Shader::execute (ExecutionContext& execCtx) const in execute()
DrsgTest.cpp50 rsg::Shader vertexShader(rsg::Shader::TYPE_VERTEX); in runTest()
51 rsg::Shader fragmentShader(rsg::Shader::TYPE_FRAGMENT); in runTest()
/external/deqp/modules/glshared/
DglsRandomShaderProgram.hpp32 class Shader;
44 …RandomShaderProgram (const rsg::Shader& vertexShader, const rsg::Shader& fragmentShader, int num…
52 const rsg::Shader& m_vertexShader;
53 const rsg::Shader& m_fragmentShader;
DglsRandomShaderCase.hpp89 void checkShaderLimits (const rsg::Shader& shader) const;
90 void checkProgramLimits (const rsg::Shader& vtxShader, const rsg::Shader& frgShader) const;
103 rsg::Shader m_vertexShader;
104 rsg::Shader m_fragmentShader;
/external/deqp/executor/tools/
DxeExtractShaderPrograms.cpp53 static const char* getShaderTypeSuffix (const xe::ri::Shader::ShaderType shaderType) in getShaderTypeSuffix()
57 case xe::ri::Shader::SHADERTYPE_VERTEX: return "vert"; in getShaderTypeSuffix()
58 case xe::ri::Shader::SHADERTYPE_FRAGMENT: return "frag"; in getShaderTypeSuffix()
59 case xe::ri::Shader::SHADERTYPE_GEOMETRY: return "geom"; in getShaderTypeSuffix()
60 case xe::ri::Shader::SHADERTYPE_TESS_CONTROL: return "tesc"; in getShaderTypeSuffix()
61 case xe::ri::Shader::SHADERTYPE_TESS_EVALUATION: return "tese"; in getShaderTypeSuffix()
62 case xe::ri::Shader::SHADERTYPE_COMPUTE: return "comp"; in getShaderTypeSuffix()
74 …const xe::ri::Shader& shader = dynamic_cast<const xe::ri::Shader&>(shaderProgram.shaders.getItem(… in writeShaderProgram()
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DGlRectDrawer.java121 private static class Shader { class in GlRectDrawer
125 public Shader(String fragmentShader) { in Shader() method in GlRectDrawer.Shader
132 private final Map<String, Shader> shaders = new IdentityHashMap<String, Shader>();
190 final Shader shader; in prepareShader()
195 shader = new Shader(fragmentShader); in prepareShader()
225 for (Shader shader : shaders.values()) { in release()
/external/swiftshader/third_party/LLVM/lib/Target/PTX/
DPTX.td47 "Use Shader Model 1.0">;
49 "Use Shader Model 1.1">;
51 "Use Shader Model 1.2">;
53 "Use Shader Model 1.3">;
55 "Use Shader Model 2.0", [FeatureDouble]>;
57 "Use Shader Model 2.1", [FeatureDouble]>;
59 "Use Shader Model 2.2", [FeatureDouble]>;
61 "Use Shader Model 2.3", [FeatureDouble]>;
/external/deqp/framework/opengl/
DgluShaderProgram.hpp81 class Shader class
84 Shader (const glw::Functions& gl, ShaderType shaderType);
85 Shader (const RenderContext& renderCtx, ShaderType shaderType);
86 ~Shader (void);
102 Shader (const Shader& other);
103 Shader& operator= (const Shader& other);
203 std::vector<Shader*> m_shaders[SHADERTYPE_LAST];
216 tcu::TestLog& operator<< (tcu::TestLog& log, const Shader& shader);
/external/deqp/modules/gles2/functional/
Des2fShaderApiTests.cpp90 void setShaderSources (glu::Shader& shader, const ShaderSources& sources) in setShaderSources()
221 glu::Shader& createShader (const glu::ShaderType shaderType);
224 …glu::Shader& get (const glu::ShaderType shaderType) { DE_ASSERT(hasShader(shaderType)); return… in get()
229 std::map<glu::ShaderType, glu::Shader*> m_shaders;
240 …for (std::map<glu::ShaderType, glu::Shader*>::iterator shaderIter = m_shaders.begin(); shaderIter … in ~ShaderAllocator()
253 glu::Shader& ShaderAllocator::createShader (const glu::ShaderType shaderType) in createShader()
257 glu::Shader* const shader = new glu::Shader(m_context, shaderType); in createShader()
286 void logShader (TestLog& log, glu::RenderContext& renderCtx, glu::Shader& shader) in logShader()
291 …log << TestLog::Shader(getLogShaderType(shader.getType()), info.source, info.compileOk, info.infoL… in logShader()
309 …, glu::RenderContext& renderCtx, glu::Program& program, glu::Shader& vertShader, glu::Shader& frag… in logVertexFragmentProgram()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowPaint.java5 import android.graphics.Shader;
27 private Shader shader;
47 public Shader setShader(Shader shader) { in setShader()
64 public Shader getShader() { in getShader()

1234567