diff options
author | quou <quou@disroot.org> | 2025-01-06 22:04:55 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-01-06 22:05:26 +1100 |
commit | 1006ccf490c473447498a5c1a290e4dd9b55b7c2 (patch) | |
tree | 48f86d6a08307a0c09a351bde35bfa746bcc3c30 /video.hpp | |
parent | 0fc7b4180b21e965db94872c20ca57f1ec9cc40a (diff) |
cubemap support
Diffstat (limited to 'video.hpp')
-rw-r--r-- | video.hpp | 26 |
1 files changed, 24 insertions, 2 deletions
@@ -335,7 +335,10 @@ enum Resource_State { struct Texture : public Asset { Texture_Id id; Texture_Format fmt; - int w, h; + int flags; + int w, h, d; + int mip_count, array_size; + int start_mip, start_array; bool alias; }; @@ -358,7 +361,9 @@ namespace Texture_Flags { colour_target = 1 << 1, depth_stencil_target = 1 << 2, copy_src = 1 << 3, - copy_dst = 1 << 4 + copy_dst = 1 << 4, + cubemap = 1 << 5, + swapchain = 1 << 6 }; }; @@ -456,8 +461,25 @@ struct Device { int flags, int w, int h, + int d, + int mip_count, + int array_size, Buffer_Id init ); + Texture_Id alias_texture( + Texture_Id o, + const char* name, + Texture_Format fmt, + int flags, + int w, + int h, + int d, + int mip_count, + int array_size, + int start_mip, + int start_array + ); + Texture_Id get_backbuffer(); Texture_Id get_depth_target(); Texture& get_texture(Texture_Id id); |