27 Aug
2022
27 Aug
'22
11:18 a.m.
On Sat Aug 27 05:47:05 2022 +0000, Ziqing Hui wrote:
If I want to store 266 bytes as DWORDs, what should I do? Store it as a 268 bytes array and reduce data size by 2 when calling effect creation functions? Like: ``` static const DWORD test_fx[] = { 288 bytes }; test_create_effect_from_memory { D3DX10CreateEffectFromMemory(sizeof(test_fx) - 2) } ``` Nah, let's just keep this as it is now, no reason to make everything more complicated.
I guess this is just something peculiar to fx_4_0 effects, surprised that I never encountered it before. I'll do some further digging locally. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/697#note_7091