mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
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:
@@ -1893,27 +1893,27 @@ func BuildWriteDescriptorSetBuffer(set DescriptorSet, binding int, typ Descripto
|
||||
}
|
||||
}
|
||||
|
||||
func (r PushConstantRange) StageFlags() ShaderStageFlags {
|
||||
func PushConstantRangeStageFlags(r PushConstantRange) ShaderStageFlags {
|
||||
return r.stageFlags
|
||||
}
|
||||
|
||||
func (r PushConstantRange) Offset() int {
|
||||
func PushConstantRangeOffset(r PushConstantRange) int {
|
||||
return int(r.offset)
|
||||
}
|
||||
|
||||
func (r PushConstantRange) Size() int {
|
||||
func PushConstantRangeSize(r PushConstantRange) int {
|
||||
return int(r.size)
|
||||
}
|
||||
|
||||
func (p QueueFamilyProperties) Flags() QueueFlags {
|
||||
func QueueFamilyPropertiesFlags(p QueueFamilyProperties) QueueFlags {
|
||||
return p.queueFlags
|
||||
}
|
||||
|
||||
func (c SurfaceCapabilities) MinExtent() image.Point {
|
||||
func SurfaceCapabilitiesMinExtent(c SurfaceCapabilities) image.Point {
|
||||
return image.Pt(int(c.minImageExtent.width), int(c.minImageExtent.height))
|
||||
}
|
||||
|
||||
func (c SurfaceCapabilities) MaxExtent() image.Point {
|
||||
func SurfaceCapabilitiesMaxExtent(c SurfaceCapabilities) image.Point {
|
||||
return image.Pt(int(c.maxImageExtent.width), int(c.maxImageExtent.height))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user