summaryrefslogtreecommitdiff
path: root/graphics/asymptote/shaders.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-12-28 03:01:00 +0000
committerNorbert Preining <norbert@preining.info>2021-12-28 03:01:00 +0000
commitecdf859b6ce481abfd530425dcf6f0f764bd0001 (patch)
tree13bc161dc046876ac6c92fce5f9f5034ba9aa573 /graphics/asymptote/shaders.h
parent790995b7e79697514364450bf9c04f1b8d500838 (diff)
CTAN sync 202112280300
Diffstat (limited to 'graphics/asymptote/shaders.h')
-rw-r--r--graphics/asymptote/shaders.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/graphics/asymptote/shaders.h b/graphics/asymptote/shaders.h
index be2441a66b..9c0a946dc4 100644
--- a/graphics/asymptote/shaders.h
+++ b/graphics/asymptote/shaders.h
@@ -18,18 +18,20 @@
#include <string>
+extern int GLSLversion;
+
typedef std::pair<std::string, int> ShaderfileModePair;
GLuint compileAndLinkShader(
- std::vector<ShaderfileModePair> const& shaders, size_t NLights,
- size_t NMaterials, std::vector<std::string> const& defineflags);
+ std::vector<ShaderfileModePair> const& shaders,
+ std::vector<std::string> const& defineflags, bool compute=false);
-GLuint createShaders(GLchar const *src, int shaderType,
- std::string const& filename);
+GLuint createShaders(const std::string& src, int shaderType,
+ std::string const& filename, bool compute=false);
-GLuint createShaderFile(std::string file, int shaderType, size_t Nlights,
- size_t Nmaterials,
- std::vector<std::string> const& constflags);
+GLuint createShaderFile(std::string file, int shaderType,
+ std::vector<std::string> const& constflags,
+ bool compute=false);
enum attrib {positionAttrib=0,normalAttrib,materialAttrib,colorAttrib,
widthAttrib};