Here is a simple fragment shader with uniform buffers:
const std = @import("std");
const gpu = std.gpu;
const UBO = extern struct {
object_color: @Vector(4, f32),
light_color: @Vector(4, f32),| // Sharp X68000 to USB mouse port adapter | |
| // by Chain-Q | |
| // | |
| // based on: | |
| // Sharp X68000 to USB keyboard and mouse converter | |
| // by Zuofu | |
| // | |
| // Supports true USB protocol (even through hub), so all types mice may be used. | |
| // | |
| // Provided free of charge and without warranty by Zuofu and Chain-Q, you may use |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |