forked from joejulian/gio
internal/vk: remove methods on C types, for Go 1.24 compatibility
Go 1.24 no longer allows methods on C types (golang.org/issue/60725). Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -862,8 +862,8 @@ func (b *Backend) BindUniforms(buffer driver.Buffer) {
|
||||
buf := buffer.(*Buffer)
|
||||
cmdBuf := b.currentCmdBuf()
|
||||
for _, s := range b.pipe.pushRanges {
|
||||
off := s.Offset()
|
||||
vk.CmdPushConstants(cmdBuf, b.pipe.desc.layout, s.StageFlags(), off, buf.store[off:off+s.Size()])
|
||||
off := vk.PushConstantRangeOffset(s)
|
||||
vk.CmdPushConstants(cmdBuf, b.pipe.desc.layout, vk.PushConstantRangeStageFlags(s), off, buf.store[off:off+vk.PushConstantRangeSize(s)])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user