vkd3d-shader: Align the start offset instead of the size in bytecode_put_bytes().
The practical effect this has is that we avoid potential trailing padding at the end of DXBC blobs. Unfortunately this also means we need to be more careful about using bytecode_get_size() to find the offset where subsequent data would get written, although in many cases this follows a put_u32() call.
parent
a0a3fb0e
No related branches found
No related tags found
Showing
- libs/vkd3d-shader/dxbc.c 7 additions, 7 deletionslibs/vkd3d-shader/dxbc.c
- libs/vkd3d-shader/hlsl_sm1.c 3 additions, 3 deletionslibs/vkd3d-shader/hlsl_sm1.c
- libs/vkd3d-shader/hlsl_sm4.c 4 additions, 4 deletionslibs/vkd3d-shader/hlsl_sm4.c
- libs/vkd3d-shader/vkd3d_shader_main.c 4 additions, 5 deletionslibs/vkd3d-shader/vkd3d_shader_main.c
- libs/vkd3d-shader/vkd3d_shader_private.h 5 additions, 0 deletionslibs/vkd3d-shader/vkd3d_shader_private.h
Loading
Please register or sign in to comment