mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
* Basic glsl support * Miscellaneous fixes and vertex shader works * Added rudimentary texture and sampler support * Basic preprocessor * Added preprocessor if macros * Pass tests and handle floats correctly * Fix preprocessor if wrong precedence ordering when using macros Refractor for the glsl parser Partial primary expression parser * Fix all clippy errors * Cleanup * Rollback formatting changes in lib.rs
11 lines
211 B
GLSL
11 lines
211 B
GLSL
#version 450 core
|
|
|
|
#define MAIN void main() {
|
|
#define V_POSITION layout(location=0) in vec4 a_position;
|
|
#define ASSIGN_POSITION gl_Position = a_position;
|
|
|
|
V_POSITION
|
|
|
|
MAIN
|
|
ASSIGN_POSITION
|
|
} |