mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Vendored
+2
-9
@@ -29,10 +29,9 @@ foreign {
|
|||||||
RawQueueSubmitForIndex :: proc(queue: Queue, commandCount: uint, commands: [^]CommandBuffer) -> SubmissionIndex ---
|
RawQueueSubmitForIndex :: proc(queue: Queue, commandCount: uint, commands: [^]CommandBuffer) -> SubmissionIndex ---
|
||||||
|
|
||||||
// Returns true if the queue is empty, or false if there are more queue submissions still in flight.
|
// Returns true if the queue is empty, or false if there are more queue submissions still in flight.
|
||||||
@(link_name="wgpuDevicePoll")
|
DevicePoll :: proc(device: Device, wait: b32, /* NULLABLE */ wrappedSubmissionIndex: /* const */ ^WrappedSubmissionIndex = nil) -> b32 ---
|
||||||
RawDevicePoll :: proc(device: Device, wait: b32, /* NULLABLE */ wrappedSubmissionIndex: /* const */ ^WrappedSubmissionIndex) -> b32 ---
|
|
||||||
|
|
||||||
SetLogCallback :: proc "odin" (callback: LogCallback) ---
|
SetLogCallback :: proc(callback: LogCallback, userdata: rawptr) ---
|
||||||
|
|
||||||
SetLogLevel :: proc(level: LogLevel) ---
|
SetLogLevel :: proc(level: LogLevel) ---
|
||||||
|
|
||||||
@@ -67,9 +66,3 @@ InstanceEnumerateAdapters :: proc(instance: Instance, options: ^InstanceEnumerat
|
|||||||
QueueSubmitForIndex :: proc(queue: Queue, commands: []CommandBuffer) -> SubmissionIndex {
|
QueueSubmitForIndex :: proc(queue: Queue, commands: []CommandBuffer) -> SubmissionIndex {
|
||||||
return RawQueueSubmitForIndex(queue, len(commands), raw_data(commands))
|
return RawQueueSubmitForIndex(queue, len(commands), raw_data(commands))
|
||||||
}
|
}
|
||||||
|
|
||||||
DevicePoll :: proc(device: Device, wait: b32) -> (wrappedSubmissionIndex: WrappedSubmissionIndex, ok: bool) {
|
|
||||||
ok = bool(RawDevicePoll(device, wait, &wrappedSubmissionIndex))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
Vendored
+2
-2
@@ -79,7 +79,7 @@ RequiredLimitsExtras :: struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SupportedLimitsExtras :: struct {
|
SupportedLimitsExtras :: struct {
|
||||||
using chain: ChainedStruct,
|
using chain: ChainedStructOut,
|
||||||
limits: NativeLimits,
|
limits: NativeLimits,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -182,7 +182,7 @@ SurfaceConfigurationExtras :: struct {
|
|||||||
desiredMaximumFrameLatency: i32,
|
desiredMaximumFrameLatency: i32,
|
||||||
}
|
}
|
||||||
|
|
||||||
LogCallback :: #type proc "odin" (level: LogLevel, message: cstring)
|
LogCallback :: #type proc "c" (level: LogLevel, message: cstring, userdata: rawptr)
|
||||||
|
|
||||||
// Wrappers
|
// Wrappers
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user