Hello, I'm a novice programmer and do not have clues but I had some issue with tc_texture_load.h tonight.
I transcoded from a 2048 by 2048 PNG image to a 8-mip-level BC7 dds file using AMD's compressonatorcli 4.5.52
In order to proceed with my programming study I had to make tctex_i_dds_load() ignore a small part of the code by applying a small change shown below:
diff --git a/tc_texture_load.h b/tc_texture_load.h
index 74f769d..9fd1018 100644
--- a/tc_texture_load.h
+++ b/tc_texture_load.h
@@ -870,7 +870,8 @@ static TCTex_Texture* tctex_i_dds_load(TCTex_Texture* tex, const uint8_t* udata,
uint32_t dwPitchOrLinearSize = TCTEX__FROM_LE32(header->dwPitchOrLinearSize);
switch(dwFlags & (TCTEX_DDSD_PITCH | TCTEX_DDSD_LINEARSIZE))
{
- case 0: TCTEX_I_RETERROR(tex, "[TODO] UNHANDLED: Compute pitch *and* linear size");
+ case 0: //TCTEX_I_RETERROR(tex, "[TODO] UNHANDLED: Compute pitch *and* linear size");
+ [[fallthrough]];
case TCTEX_DDSD_PITCH:
tex->pitch.y = TCTEX__FROM_LE32(dwPitchOrLinearSize);
tex->pitch.z = tex->size.y * tex->pitch.y;
Thank you so much.
Now I have to figure out how to load the BC7 texture to my GPU; I hope it will be easy
Hello, I'm a novice programmer and do not have clues but I had some issue with tc_texture_load.h tonight.
I transcoded from a 2048 by 2048 PNG image to a 8-mip-level BC7 dds file using AMD's compressonatorcli 4.5.52
In order to proceed with my programming study I had to make
tctex_i_dds_load()ignore a small part of the code by applying a small change shown below:Thank you so much.
Now I have to figure out how to load the BC7 texture to my GPU; I hope it will be easy