@@ -71,21 +71,21 @@ class Texture2D {
7171 void Free ();
7272
7373 void InitFromRAWData (Buffer *sbuf, int data_off, ID3D12GraphicsCommandList *cmd_buf, MemAllocators *mem_allocs,
74- const Tex2DParams &p, ILog *log);
74+ const TexParams &p, ILog *log);
7575
7676 public:
77- Tex2DParams params;
77+ TexParams params;
7878
7979 uint32_t first_user = 0xffffffff ;
8080 mutable eResState resource_state = eResState::Undefined;
8181
8282 Texture2D () = default ;
83- Texture2D (const char *name, Context *ctx, const Tex2DParams ¶ms, MemAllocators *mem_allocs, ILog *log);
83+ Texture2D (const char *name, Context *ctx, const TexParams ¶ms, MemAllocators *mem_allocs, ILog *log);
8484 Texture2D (const char *name, Context *ctx,
8585 ID3D12Resource *img, // const VkImageView view, const VkSampler sampler,
86- const Tex2DParams &_params, ILog *log)
86+ const TexParams &_params, ILog *log)
8787 : handle_{img, /* view, VK_NULL_HANDLE, sampler,*/ 0 }, name_(name), params(_params) {}
88- Texture2D (const char *name, Context *ctx, const void *data, uint32_t size, const Tex2DParams &p, Buffer &stage_buf,
88+ Texture2D (const char *name, Context *ctx, const void *data, uint32_t size, const TexParams &p, Buffer &stage_buf,
8989 ID3D12GraphicsCommandList *cmd_buf, MemAllocators *mem_allocs, eTexLoadStatus *load_status, ILog *log);
9090 Texture2D (const Texture2D &rhs) = delete ;
9191 Texture2D (Texture2D &&rhs) noexcept { (*this ) = std::move (rhs); }
@@ -96,13 +96,13 @@ class Texture2D {
9696
9797 operator bool () const { return (handle_.img != nullptr ); }
9898
99- void Init (const Tex2DParams ¶ms, MemAllocators *mem_allocs, ILog *log);
100- void Init (ID3D12Resource *img, /* const VkImageView view, const VkSampler sampler,*/ const Tex2DParams &_params,
99+ void Init (const TexParams ¶ms, MemAllocators *mem_allocs, ILog *log);
100+ void Init (ID3D12Resource *img, /* const VkImageView view, const VkSampler sampler,*/ const TexParams &_params,
101101 ILog *log) {
102102 handle_ = {img, /* view, VK_NULL_HANDLE, sampler,*/ 0 };
103103 params = _params;
104104 }
105- void Init (const void *data, uint32_t size, const Tex2DParams &p, Buffer &stage_buf,
105+ void Init (const void *data, uint32_t size, const TexParams &p, Buffer &stage_buf,
106106 ID3D12GraphicsCommandList *cmd_buf, MemAllocators *mem_allocs, eTexLoadStatus *load_status, ILog *log);
107107
108108 bool Realloc (int w, int h, int mip_count, int samples, eTexFormat format, bool is_srgb,
@@ -158,11 +158,11 @@ class Texture3D {
158158 void Free ();
159159
160160 public:
161- Tex3DParams params;
161+ TexParams params;
162162 mutable eResState resource_state = eResState::Undefined;
163163
164164 Texture3D () = default ;
165- Texture3D (const char *name, Context *ctx, const Tex3DParams ¶ms, MemAllocators *mem_allocs, ILog *log);
165+ Texture3D (const char *name, Context *ctx, const TexParams ¶ms, MemAllocators *mem_allocs, ILog *log);
166166 Texture3D (const Texture3D &rhs) = delete ;
167167 Texture3D (Texture3D &&rhs) noexcept { (*this ) = std::move (rhs); }
168168 ~Texture3D ();
@@ -176,7 +176,7 @@ class Texture3D {
176176 ID3D12Resource *dx_resource () const { return handle_.img ; }
177177 PoolRef sampler_ref () const { return handle_.sampler_ref ; }
178178
179- void Init (const Tex3DParams ¶ms, MemAllocators *mem_allocs, ILog *log);
179+ void Init (const TexParams ¶ms, MemAllocators *mem_allocs, ILog *log);
180180
181181 void SetSubImage (int offsetx, int offsety, int offsetz, int sizex, int sizey, int sizez, eTexFormat format,
182182 const Buffer &sbuf, ID3D12GraphicsCommandList *cmd_buf, int data_off, int data_len);
0 commit comments