Skip to content

Commit

Permalink
internal/graphicsdriver/metal: bug fix: compilation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Dec 7, 2024
1 parent 103b3fe commit 7d3007a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/graphicscommand/commandqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion internal/graphicsdriver/metal/graphics_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]...)
Expand Down

0 comments on commit 7d3007a

Please sign in to comment.