Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/shader/shader.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,22 @@ end
# Different shader string literals- usage: e.g. frag" my shader code"
macro frag_str(source::AbstractString)
quote
(GL_FRAGMENT_SHADER, $source)
Shader(GL_FRAGMENT_SHADER, $source)
end
end
macro vert_str(source::AbstractString)
quote
(GL_VERTEX_SHADER, $source)
Shader(GL_VERTEX_SHADER, $source)
end
end
macro geom_str(source::AbstractString)
quote
(GL_GEOMETRY_SHADER, $source)
Shader(GL_GEOMETRY_SHADER, $source)
end
end
macro comp_str(source::AbstractString)
quote
(GL_COMPUTE_SHADER, $source)
Shader(GL_COMPUTE_SHADER, $source)
end
end

Expand Down