mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 03:02:49 +01:00
internal/graphicsdriver/metal: bug fix: compilation failure
This commit is contained in:
parent
103b3fe11e
commit
7d3007a43e
@ -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 {
|
||||
|
@ -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]...)
|
||||
|
Loading…
Reference in New Issue
Block a user