gpu: inline TODOs

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-25 21:58:21 -07:00 committed by Stephen Gutekanst
parent 8453b0d2a6
commit b0adf42c70
25 changed files with 1939 additions and 605 deletions

View file

@ -4,7 +4,22 @@ const Texture = @import("texture.zig").Texture;
const TextureUsageFlags = @import("texture.zig").TextureUsageFlags;
const TextureFormat = @import("texture.zig").TextureFormat;
pub const SwapChain = *opaque {};
pub const SwapChain = *opaque {
// TODO
// pub inline fn swapChainConfigure(swap_chain: gpu.SwapChain, format: gpu.TextureFormat, allowed_usage: gpu.TextureUsageFlags, width: u32, height: u32) void {
// TODO
// pub inline fn swapChainGetCurrentTextureView(swap_chain: gpu.SwapChain) gpu.TextureView {
// TODO
// pub inline fn swapChainPresent(swap_chain: gpu.SwapChain) void {
// TODO
// pub inline fn swapChainReference(swap_chain: gpu.SwapChain) void {
// TODO
// pub inline fn swapChainRelease(swap_chain: gpu.SwapChain) void {
};
pub const SwapChainDescriptor = extern struct {
next_in_chain: *const ChainedStruct,