vkd3d-proton
vkd3d-proton copied to clipboard
vkd3d: aligned fields for 64-bit platform move/copy struct optimization
@HansKristian-Work, @doitsujin , I tried to keep context structure fields and readability. PR changes is really useful, building configuration in Release, fps increase will be very inaccurate ~5%
- vkd3d_instance_create_info (40 bytes -> 32 bytes)
- vkd3d_instance_application_meta (40 bytes -> 32 bytes)
- vkd3d_shader_transform_feedback_info (32 bytes -> 24 bytes)
- vkd3d_shader_compile_arguments (80 bytes -> 72 bytes)
- vkd3d_shader_library_subobject (64 bytes -> 56 bytes)
- vkd3d_shader_register (88 bytes -> 80 bytes)
- vkd3d_root_parameter1 (32 bytes -> 24 bytes)
- vkd3d_root_parameter (32 bytes -> 24 bytes)
- vkd3d_root_signature_desc1 (40 bytes -> 32 bytes)
- vkd3d_root_signature_desc2 (40 bytes -> 32 bytes)
- vkd3d_memory_transfer_info (56 bytes -> 48 bytes)
- vkd3d_waiting_event (48 bytes -> 40 bytes)
- pipeline (32 bytes -> 24 bytes)
- local_static_sampler (56 bytes -> 48 bytes)
- dxgi_vk_swap_chain_present_request (88 bytes -> 80 bytes)