Re: [4/5] d3dx9: Implement D3DXCreateVolumeTextureFromFileInMemoryEx.
28 Jun
2012
28 Jun
'12
12:28 p.m.
2012/6/27 Józef Kucia <joseph.kucia(a)gmail.com>:
---
+ for (mip_level = 0; mip_level < mip_levels; mip_level++) + { + hr = calculate_dds_surface_size(src_info, width, height, &src_pitch, &mip_level_size); + if (FAILED(hr)) return hr; ... + hr = D3DXLoadVolumeFromMemory(volume, palette, NULL, pixels, src_info->Format, + src_pitch, mip_level_size, NULL, &box, filter, color_key);
mip_level_size would be the source slice pitch, right? I'd just call it like that.
4916
Age (days ago)
4916
Last active (days ago)
0 comments
1 participants
participants (1)
-
Matteo Bruni