mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
gpu,gpu/internal: generate hashes of compute programs
The CPU fallback for the compute renderer is contained in a separate module for space reasons, but the CPU binaries must exactly match the compute programs. However, there is no way to express that constraint in go.mod. This change generates hashes of every compute program so that a following change can verify the CPU binaries match the programs. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -64,6 +64,7 @@ type ShaderSources struct {
|
||||
Uniforms UniformsReflection
|
||||
Inputs []InputLocation
|
||||
Textures []TextureBinding
|
||||
Hash string
|
||||
}
|
||||
|
||||
type UniformsReflection struct {
|
||||
|
||||
Reference in New Issue
Block a user