We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be56469 commit 10cfa74Copy full SHA for 10cfa74
src/quad.jl
@@ -10,8 +10,11 @@ mutable struct RenderSurface
10
va::VertexArray
11
end
12
13
-function RenderSurface(; width::Integer, height::Integer)
14
- texture = Texture(width, height; internal_format=GL_RGB32F, type=GL_FLOAT)
+function RenderSurface(;
+ width::Integer, height::Integer,
15
+ internal_format = GL_RGB32F, data_type = GL_FLOAT,
16
+)
17
+ texture = Texture(width, height; internal_format, type=data_type)
18
program = get_program(RenderSurface)
19
bind(program)
20
upload_uniform(program, "u_Texture", 0)
0 commit comments