mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
gpu: introduce pipeline abstraction
Modern API such as Metal and Vulkan want clients to compile expensive state changes into pipeline objects. Change our GPU driver abstraction to match, thereby paving the way for future drivers. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -1449,6 +1449,16 @@ func IUnknownQueryInterface(obj unsafe.Pointer, queryInterfaceMethod uintptr, gu
|
||||
return ref, nil
|
||||
}
|
||||
|
||||
func IUnknownAddRef(obj unsafe.Pointer, addRefMethod uintptr) {
|
||||
syscall.Syscall(
|
||||
addRefMethod,
|
||||
1,
|
||||
uintptr(obj),
|
||||
0,
|
||||
0,
|
||||
)
|
||||
}
|
||||
|
||||
func IUnknownRelease(obj unsafe.Pointer, releaseMethod uintptr) {
|
||||
syscall.Syscall(
|
||||
releaseMethod,
|
||||
|
||||
Reference in New Issue
Block a user