vkd3d-dxbc: Print section offsets.
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
+ char dec_size[16]; + int dec_size_len; + size_t offset; + section = &dxbc_desc->sections[i]; - printf("%s%2zu%s %08x (%.4s) 0x%08zx (%zu) bytes\n", + dec_size_len = sprintf(dec_size, "%zu", section->data.size);
I suppose that's safe, but only because we happen to know that the format limits section sizes to 32 bits in practice.
If we're going to do something like this anyway, we might as well do something like this:
sprintf(dec_size, "(%zu)", section->data.size); ... printf("... 0x%08zx %-13s 0x%08zx ...\n", ..., section->data.size, dec_size, offset, ...);
I suppose that's safe, but only because we happen to know that the format limits section sizes to 32 bits in practice.
Yeah, I assumed that. I also thought about first rendering all the sizes, take the maximum and then render again, but it looked like too much effort for something like that.
If we're going to do something like this anyway, we might as well do something like this:
Done, thanks.
added 6 commits
-
b75fa28b...1006e8cb - 5 commits from branch
wine:master
- 6743439e - vkd3d-dxbc: Print section offsets.
-
b75fa28b...1006e8cb - 5 commits from branch
Please register or sign in to reply