Page Menu
Home
Search
Configure Global Search
Log In
Paste
P2628
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Clément Foucault (fclem)
on Nov 30 2021, 9:28 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
GPU_SHADER_STAGE_INTERFACE
(
flat_color_iface
).
add
(
VEC4
,
"finalColor"
,
FLAT
);
GPU_SHADER_DESCRIPTOR
(
gpu_shader_3D_flat_color
)
.
add_vertex_input
(
0
,
VEC3
,
"pos"
)
.
add_vertex_input
(
1
,
VEC4
,
"col"
)
.
add_vertex_out_interface
(
0
,
""
,
flat_color_iface
)
.
add_fragment_output
(
0
,
VEC4
,
"fragColor"
)
.
add_push_constant
(
1
,
BOOL
,
"srgbTarget"
)
.
add_vertex_source
(
"gpu_shader_3D_flat_color_vert.glsl"
)
.
add_fragment_source
(
"gpu_shader_flat_color_frag.glsl"
);
GPU_SHADER_DESCRIPTOR
(
gpu_shader_3D_flat_color_clipped
)
.
add_description
(
"gpu_shader_3D_flat_color"
)
.
add_description
(
"gpu_clip_planes"
);
Event Timeline
Clément Foucault (fclem)
created this paste.
Nov 30 2021, 9:28 PM
Clément Foucault (fclem)
mentioned this in
D13360: GPUShaderCreateInfo for interface abstraction
.
Nov 30 2021, 10:17 PM
Log In to Comment