internal/graphicsdriver/metal: bug fix: compilation failure

This commit is contained in:
Hajime Hoshi 2024-12-07 23:15:13 +09:00
parent 103b3fe11e
commit 7d3007a43e
2 changed files with 2 additions and 2 deletions

View File

@ -468,7 +468,7 @@ func prependPreservedUniforms(uniforms []uint32, shader *Shader, dst *Image, src
return uniforms
}
// Confirm the concrete value of graphics.PreservedUniformUint32Count.
// Confirm the concrete value of graphics.PreservedUniformDwordCount.
var _ [0]struct{} = [graphics.PreservedUniformDwordCount - 46]struct{}{}
type commandQueuePool struct {

View File

@ -882,7 +882,7 @@ func adjustUniformVariablesLayout(uniformTypes []shaderir.Type, uniforms []uint3
var idx int
for i, typ := range uniformTypes {
n := typ.Uint32Count()
n := typ.DwordCount()
switch typ.Main {
case shaderir.Float, shaderir.Int:
values = append(values, uniforms[idx:idx+n]...)