• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2016 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // ProgramNULL.cpp:
7 //    Implements the class methods for ProgramNULL.
8 //
9 
10 #include "libANGLE/renderer/null/ProgramNULL.h"
11 
12 #include "common/debug.h"
13 
14 namespace rx
15 {
16 
ProgramNULL(const gl::ProgramState & state)17 ProgramNULL::ProgramNULL(const gl::ProgramState &state) : ProgramImpl(state) {}
18 
~ProgramNULL()19 ProgramNULL::~ProgramNULL() {}
20 
load(const gl::Context * context,gl::BinaryInputStream * stream,gl::InfoLog & infoLog)21 std::unique_ptr<LinkEvent> ProgramNULL::load(const gl::Context *context,
22                                              gl::BinaryInputStream *stream,
23                                              gl::InfoLog &infoLog)
24 {
25     return std::make_unique<LinkEventDone>(angle::Result::Continue);
26 }
27 
save(const gl::Context * context,gl::BinaryOutputStream * stream)28 void ProgramNULL::save(const gl::Context *context, gl::BinaryOutputStream *stream) {}
29 
setBinaryRetrievableHint(bool retrievable)30 void ProgramNULL::setBinaryRetrievableHint(bool retrievable) {}
31 
setSeparable(bool separable)32 void ProgramNULL::setSeparable(bool separable) {}
33 
link(const gl::Context * contextImpl,const gl::ProgramLinkedResources & resources,gl::InfoLog & infoLog,const gl::ProgramMergedVaryings &)34 std::unique_ptr<LinkEvent> ProgramNULL::link(const gl::Context *contextImpl,
35                                              const gl::ProgramLinkedResources &resources,
36                                              gl::InfoLog &infoLog,
37                                              const gl::ProgramMergedVaryings & /*mergedVaryings*/)
38 {
39     return std::make_unique<LinkEventDone>(angle::Result::Continue);
40 }
41 
validate(const gl::Caps & caps,gl::InfoLog * infoLog)42 GLboolean ProgramNULL::validate(const gl::Caps &caps, gl::InfoLog *infoLog)
43 {
44     return GL_TRUE;
45 }
46 
setUniform1fv(GLint location,GLsizei count,const GLfloat * v)47 void ProgramNULL::setUniform1fv(GLint location, GLsizei count, const GLfloat *v) {}
48 
setUniform2fv(GLint location,GLsizei count,const GLfloat * v)49 void ProgramNULL::setUniform2fv(GLint location, GLsizei count, const GLfloat *v) {}
50 
setUniform3fv(GLint location,GLsizei count,const GLfloat * v)51 void ProgramNULL::setUniform3fv(GLint location, GLsizei count, const GLfloat *v) {}
52 
setUniform4fv(GLint location,GLsizei count,const GLfloat * v)53 void ProgramNULL::setUniform4fv(GLint location, GLsizei count, const GLfloat *v) {}
54 
setUniform1iv(GLint location,GLsizei count,const GLint * v)55 void ProgramNULL::setUniform1iv(GLint location, GLsizei count, const GLint *v) {}
56 
setUniform2iv(GLint location,GLsizei count,const GLint * v)57 void ProgramNULL::setUniform2iv(GLint location, GLsizei count, const GLint *v) {}
58 
setUniform3iv(GLint location,GLsizei count,const GLint * v)59 void ProgramNULL::setUniform3iv(GLint location, GLsizei count, const GLint *v) {}
60 
setUniform4iv(GLint location,GLsizei count,const GLint * v)61 void ProgramNULL::setUniform4iv(GLint location, GLsizei count, const GLint *v) {}
62 
setUniform1uiv(GLint location,GLsizei count,const GLuint * v)63 void ProgramNULL::setUniform1uiv(GLint location, GLsizei count, const GLuint *v) {}
64 
setUniform2uiv(GLint location,GLsizei count,const GLuint * v)65 void ProgramNULL::setUniform2uiv(GLint location, GLsizei count, const GLuint *v) {}
66 
setUniform3uiv(GLint location,GLsizei count,const GLuint * v)67 void ProgramNULL::setUniform3uiv(GLint location, GLsizei count, const GLuint *v) {}
68 
setUniform4uiv(GLint location,GLsizei count,const GLuint * v)69 void ProgramNULL::setUniform4uiv(GLint location, GLsizei count, const GLuint *v) {}
70 
setUniformMatrix2fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)71 void ProgramNULL::setUniformMatrix2fv(GLint location,
72                                       GLsizei count,
73                                       GLboolean transpose,
74                                       const GLfloat *value)
75 {}
76 
setUniformMatrix3fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)77 void ProgramNULL::setUniformMatrix3fv(GLint location,
78                                       GLsizei count,
79                                       GLboolean transpose,
80                                       const GLfloat *value)
81 {}
82 
setUniformMatrix4fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)83 void ProgramNULL::setUniformMatrix4fv(GLint location,
84                                       GLsizei count,
85                                       GLboolean transpose,
86                                       const GLfloat *value)
87 {}
88 
setUniformMatrix2x3fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)89 void ProgramNULL::setUniformMatrix2x3fv(GLint location,
90                                         GLsizei count,
91                                         GLboolean transpose,
92                                         const GLfloat *value)
93 {}
94 
setUniformMatrix3x2fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)95 void ProgramNULL::setUniformMatrix3x2fv(GLint location,
96                                         GLsizei count,
97                                         GLboolean transpose,
98                                         const GLfloat *value)
99 {}
100 
setUniformMatrix2x4fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)101 void ProgramNULL::setUniformMatrix2x4fv(GLint location,
102                                         GLsizei count,
103                                         GLboolean transpose,
104                                         const GLfloat *value)
105 {}
106 
setUniformMatrix4x2fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)107 void ProgramNULL::setUniformMatrix4x2fv(GLint location,
108                                         GLsizei count,
109                                         GLboolean transpose,
110                                         const GLfloat *value)
111 {}
112 
setUniformMatrix3x4fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)113 void ProgramNULL::setUniformMatrix3x4fv(GLint location,
114                                         GLsizei count,
115                                         GLboolean transpose,
116                                         const GLfloat *value)
117 {}
118 
setUniformMatrix4x3fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)119 void ProgramNULL::setUniformMatrix4x3fv(GLint location,
120                                         GLsizei count,
121                                         GLboolean transpose,
122                                         const GLfloat *value)
123 {}
124 
getUniformfv(const gl::Context * context,GLint location,GLfloat * params) const125 void ProgramNULL::getUniformfv(const gl::Context *context, GLint location, GLfloat *params) const
126 {
127     // TODO(jmadill): Write some values.
128 }
129 
getUniformiv(const gl::Context * context,GLint location,GLint * params) const130 void ProgramNULL::getUniformiv(const gl::Context *context, GLint location, GLint *params) const
131 {
132     // TODO(jmadill): Write some values.
133 }
134 
getUniformuiv(const gl::Context * context,GLint location,GLuint * params) const135 void ProgramNULL::getUniformuiv(const gl::Context *context, GLint location, GLuint *params) const
136 {
137     // TODO(jmadill): Write some values.
138 }
139 
140 }  // namespace rx
141