Anonymous
Vkcreatedevice крюк с Минхаком в Вулкан-длле не работает/никогда не называется
Сообщение
Anonymous » 01 июл 2025, 08:48
В настоящее время я пытаюсь снизить разрешение внутреннего рендеринга из игры под названием «Beamng Drive» с использованием инъекции DLL. В Beamng я запускаю игру в режиме Vulkan, я вхожу в игру и ввожу в Minhook и свой составлен DLL в нее. Мой DLL вводит в Beamng, однако vkcreatedevice никогда ничего не возвращает. Код грязный, потому что я пытался «заставить» читать из vkcreatedevice: < /p>
Код: Выделить всё
#include "pch.h"
#include
#include
#include
#include
#include
#include "MinHook.h"
#include
std::ofstream logFile("C:\\temp\\vk_hook_log.txt", std::ios::app);
#define LOG(msg) do { logFile imageExtent.height / 2;
LOG("Trying downscale to 50%");
VkResult result;
const int maxTries = 100;
int tries = 0;
do {
result = original_vkCreateSwapchainKHR(device, &modifiedCreateInfo, pAllocator, pSwapchain);
if (result == VK_SUCCESS) break;
tries++;
std::this_thread::sleep_for(std::chrono::milliseconds(10));
} while (tries < maxTries);
if (result == VK_SUCCESS) {
LOG("Downscale applied after "
DLL_PROCESS_ATTACH
beamng Vullan, связанные с Vullan,:
Код: Выделить всё
0.79928|D|vulkan| 8 Layers: VK_LAYER_NV_optimus, VK_LAYER_NV_present, VK_LAYER_OBS_HOOK, VK_LAYER_VALVE_steam_overlay, VK_LAYER_VALVE_steam_fossilize, VK_LAYER_EOS_Overlay, VK_LAYER_EOS_Overlay, VK_LAYER_ROCKSTAR_GAMES_social_club
0.79930|D|vulkan| Attempting to create vulkan instance with the following 8 instance extensions: VK_KHR_get_physical_device_properties2, VK_EXT_debug_utils, VK_KHR_surface, VK_KHR_external_memory_capabilities, VK_KHR_external_fence_capabilities, VK_KHR_external_semaphore_capabilities, VK_KHR_win32_surface, VK_NV_external_memory_capabilities
0.84686|D|vulkan| Available vulkan devices:
0.84689|D|vulkan| - name:NVIDIA GeForce RTX 3060 vendor:4318 version:2416771072 type:Discrete
0.84689|D|vulkan| Trying to locate a vulkan device with type: Discrete
0.84690|D|vulkan| - Found vulkan device with suitable type: name:NVIDIA GeForce RTX 3060 vendor:4318 version:2416771072 type:Discrete
0.84704|D|vulkan| 247 supported Vk device extensions: VK_KHR_external_semaphore, VK_EXT_pci_bus_info, VK_KHR_acceleration_structure, VK_KHR_compute_shader_derivatives, VK_KHR_format_feature_flags2, VK_KHR_16bit_storage, VK_KHR_8bit_storage, VK_KHR_bind_memory2, VK_KHR_buffer_device_address, VK_KHR_calibrated_timestamps, VK_KHR_shader_atomic_int64, VK_KHR_cooperative_matrix, VK_KHR_maintenance5, VK_KHR_copy_commands2, VK_KHR_swapchain, VK_KHR_ray_tracing_position_fetch, VK_KHR_create_renderpass2, VK_KHR_shader_clock, VK_KHR_separate_depth_stencil_layouts, VK_KHR_dedicated_allocation, VK_KHR_relaxed_block_layout, VK_EXT_attachment_feedback_loop_layout, VK_KHR_shader_draw_parameters, VK_KHR_deferred_host_operations, VK_KHR_depth_stencil_resolve, VK_NVX_binary_import, VK_KHR_push_descriptor, VK_KHR_descriptor_update_template, VK_EXT_vertex_attribute_robustness, VK_KHR_device_group, VK_KHR_draw_indirect_count, VK_NV_shader_image_footprint, VK_KHR_ray_tracing_pipeline, VK_KHR_driver_properties, VK_KHR_dynamic_rendering, VK_EXT_4444_formats, VK_KHR_maintenance6, VK_KHR_dynamic_rendering_local_read, VK_KHR_sampler_ycbcr_conversion, VK_KHR_present_wait, VK_KHR_external_fence, VK_KHR_variable_pointers, VK_KHR_external_fence_win32, VK_KHR_external_memory, VK_KHR_external_memory_win32, VK_KHR_pipeline_library, VK_KHR_external_semaphore_win32, VK_EXT_vertex_input_dynamic_state, VK_EXT_conditional_rendering, VK_KHR_fragment_shader_barycentric, VK_KHR_global_priority, VK_KHR_fragment_shading_rate, VK_NV_inherited_viewport_scissor, VK_KHR_get_memory_requirements2, VK_KHR_image_format_list, VK_KHR_sampler_mirror_clamp_to_edge, VK_KHR_line_rasterization, VK_KHR_imageless_framebuffer, VK_KHR_multiview, VK_KHR_index_type_uint8, VK_KHR_load_store_op_none, VK_KHR_maintenance1, VK_KHR_maintenance2, VK_KHR_maintenance3, VK_KHR_ray_query, VK_EXT_post_depth_coverage, VK_KHR_maintenance4, VK_KHR_maintenance7, VK_KHR_ray_tracing_maintenance1, VK_KHR_pipeline_binary, VK_KHR_map_memory2, VK_KHR_pipeline_executable_properties, VK_EXT_extended_dynamic_state, VK_KHR_shader_float_controls, VK_KHR_present_id, VK_KHR_shader_expect_assume, VK_KHR_shader_float16_int8, VK_EXT_extended_dynamic_state2, VK_KHR_shader_float_controls2, VK_KHR_shader_integer_dot_product, VK_NV_shader_atomic_float16_vector, VK_KHR_shader_maximal_reconvergence, VK_KHR_shader_non_semantic_info, VK_KHR_video_encode_quantization_map, VK_KHR_shader_quad_control, VK_EXT_graphics_pipeline_library, VK_KHR_shader_relaxed_extended_instruction, VK_KHR_shader_subgroup_extended_types, VK_EXT_tooling_info, VK_KHR_shader_subgroup_rotate, VK_KHR_shader_subgroup_uniform_control_flow, VK_KHR_shader_terminate_invocation, VK_KHR_spirv_1_4, VK_EXT_host_query_reset, VK_KHR_storage_buffer_storage_class, VK_KHR_swapchain_mutable_format, VK_EXT_pipeline_library_group_handles, VK_KHR_synchronization2, VK_KHR_timeline_semaphore, VK_KHR_uniform_buffer_standard_layout, VK_EXT_shader_subgroup_vote, VK_KHR_vertex_attribute_divisor, VK_KHR_video_decode_av1, VK_KHR_video_decode_h264, VK_KHR_video_decode_h265, VK_KHR_video_decode_queue, VK_NV_acquire_winrt_display, VK_KHR_video_encode_h264, VK_KHR_video_encode_h265, VK_KHR_video_encode_queue, VK_KHR_video_maintenance1, VK_KHR_video_maintenance2, VK_KHR_video_queue, VK_KHR_vulkan_memory_model, VK_EXT_depth_clip_enable, VK_KHR_win32_keyed_mutex, VK_KHR_workgroup_memory_explicit_layout, VK_NV_sample_mask_override_coverage, VK_KHR_zero_initialize_workgroup_memory, VK_NV_fragment_shader_barycentric, VK_EXT_attachment_feedback_loop_dynamic_state, VK_EXT_multi_draw, VK_EXT_blend_operation_advanced, VK_EXT_border_color_swizzle, VK_EXT_buffer_device_address, VK_EXT_calibrated_timestamps, VK_EXT_color_write_enable, VK_EXT_conservative_rasterization, VK_EXT_image_view_min_lod, VK_EXT_custom_border_color, VK_EXT_depth_bias_control, VK_EXT_depth_clamp_control, VK_EXT_depth_clamp_zero_one, VK_EXT_depth_clip_control, VK_EXT_hdr_metadata, VK_EXT_depth_range_unrestricted, VK_EXT_descriptor_buffer, VK_NV_clip_space_w_scaling, VK_EXT_descriptor_indexing, VK_EXT_shader_module_identifier, VK_EXT_device_address_binding_report, VK_EXT_device_fault, VK_EXT_device_generated_commands, VK_EXT_discard_rectangles, VK_EXT_shader_replicated_composites, VK_EXT_dynamic_rendering_unused_attachments, VK_EXT_extended_dynamic_state3, VK_NV_fragment_coverage_to_color, VK_EXT_external_memory_host, VK_EXT_fragment_shader_interlock, VK_EXT_full_screen_exclusive, VK_EXT_global_priority, VK_EXT_global_priority_query, VK_EXT_host_image_copy, VK_EXT_image_2d_view_of_3d, VK_EXT_image_robustness, VK_GOOGLE_user_type, VK_EXT_image_sliced_view_of_3d, VK_NV_cooperative_matrix, VK_EXT_non_seamless_cube_map, VK_EXT_index_type_uint8, VK_NV_representative_fragment_test, VK_EXT_inline_uniform_block, VK_EXT_legacy_vertex_attributes, VK_EXT_line_rasterization, VK_EXT_load_store_op_none, VK_EXT_memory_budget, VK_NV_cooperative_matrix2, VK_EXT_separate_stencil_usage, VK_EXT_memory_priority, VK_NV_disk_cache_utils, VK_EXT_mesh_shader, VK_EXT_mutable_descriptor_type, VK_EXT_nested_command_buffer, VK_EXT_opacity_micromap, VK_EXT_pageable_device_local_memory, VK_EXT_swapchain_maintenance1, VK_EXT_pipeline_creation_cache_control, VK_EXT_pipeline_creation_feedback, VK_EXT_pipeline_robustness, VK_EXT_present_mode_fifo_latest_ready, VK_EXT_primitive_topology_list_restart, VK_EXT_primitives_generated_query, VK_EXT_private_data, VK_EXT_provoking_vertex, VK_EXT_queue_family_foreign, VK_EXT_robustness2, VK_EXT_sample_locations, VK_EXT_sampler_filter_minmax, VK_EXT_scalar_block_layout, VK_EXT_shader_atomic_float, VK_EXT_shader_demote_to_helper_invocation, VK_EXT_shader_image_atomic_int64, VK_NV_ray_tracing_invocation_reorder, VK_EXT_shader_object, VK_NV_optical_flow, VK_EXT_shader_subgroup_ballot, VK_NV_device_diagnostic_checkpoints, VK_EXT_shader_viewport_index_layer, VK_EXT_subgroup_size_control, VK_EXT_texel_buffer_alignment, VK_EXT_transform_feedback, VK_EXT_vertex_attribute_divisor, VK_EXT_ycbcr_2plane_444_formats, VK_EXT_ycbcr_image_arrays, VK_NV_internal_nvpresent, VK_NV_cluster_acceleration_structure, VK_NV_compute_shader_derivatives, VK_NV_cooperative_vector, VK_NV_copy_memory_indirect, VK_NV_corner_sampled_image, VK_NV_coverage_reduction_mode, VK_NV_cuda_kernel_launch, VK_NV_dedicated_allocation, VK_NV_dedicated_allocation_image_aliasing, VK_NV_descriptor_pool_overallocation, VK_NV_device_diagnostics_config, VK_NV_device_generated_commands, VK_NV_device_generated_commands_compute, VK_NV_external_compute_queue, VK_NV_external_memory, VK_NV_external_memory_win32, VK_NV_fill_rectangle, VK_NV_fragment_shading_rate_enums, VK_NV_framebuffer_mixed_samples, VK_NV_geometry_shader_passthrough, VK_NV_linear_color_attachment, VK_NV_low_latency, VK_NV_low_latency2, VK_NV_memory_decompression, VK_NV_mesh_shader, VK_NV_partitioned_acceleration_structure, VK_NV_present_metering, VK_NV_raw_access_chains, VK_NV_ray_tracing, VK_NV_ray_tracing_motion_blur, VK_NV_scissor_exclusive, VK_NV_shader_sm_builtins, VK_NV_shader_subgroup_partitioned, VK_NV_shading_rate_image, VK_NV_viewport_array2, VK_NV_viewport_swizzle, VK_NV_win32_keyed_mutex, VK_NVX_image_view_handle, VK_NVX_multiview_per_view_attributes, VK_AMD_buffer_marker, VK_GOOGLE_hlsl_functionality1
0.84741|D|vulkan| Attempting to create vulkan device with the following 28 vulkan device extensions: VK_KHR_swapchain, VK_EXT_memory_budget, VK_EXT_memory_priority, VK_NV_device_diagnostic_checkpoints, VK_EXT_robustness2, VK_KHR_fragment_shader_barycentric, VK_EXT_pageable_device_local_memory, VK_KHR_ray_query, VK_KHR_ray_tracing_pipeline, VK_KHR_acceleration_structure, VK_KHR_deferred_host_operations, VK_KHR_get_memory_requirements2, VK_KHR_image_format_list, VK_KHR_external_memory, VK_KHR_external_fence, VK_KHR_external_semaphore, VK_KHR_dedicated_allocation, VK_KHR_external_memory_win32, VK_KHR_external_fence_win32, VK_KHR_external_semaphore_win32, VK_EXT_queue_family_foreign, VK_KHR_bind_memory2, VK_KHR_create_renderpass2, VK_KHR_maintenance2, VK_KHR_multiview, VK_KHR_push_descriptor, VK_KHR_win32_keyed_mutex, VK_KHR_timeline_semaphore
1.01467|D|vulkan| Created Vulkan device from NVIDIA GeForce RTX 3060
1.01543|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'maxTextureWidth' to 8192.
1.01544|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'maxTextureHeight' to 8192.
1.01545|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'maxTextureSize' to 8192.
1.01546|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'autoMipMapLevel' to 1.
1.01547|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'lerpDetailBlend' to 1.
1.01547|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'fourStageDetailBlend' to 1.zur hilfe, beamng interne logs zu vulkan:
0.79928|D|vulkan| 8 Layers: VK_LAYER_NV_optimus, VK_LAYER_NV_present, VK_LAYER_OBS_HOOK, VK_LAYER_VALVE_steam_overlay, VK_LAYER_VALVE_steam_fossilize, VK_LAYER_EOS_Overlay, VK_LAYER_EOS_Overlay, VK_LAYER_ROCKSTAR_GAMES_social_club
0.79930|D|vulkan| Attempting to create vulkan instance with the following 8 instance extensions: VK_KHR_get_physical_device_properties2, VK_EXT_debug_utils, VK_KHR_surface, VK_KHR_external_memory_capabilities, VK_KHR_external_fence_capabilities, VK_KHR_external_semaphore_capabilities, VK_KHR_win32_surface, VK_NV_external_memory_capabilities
0.84686|D|vulkan| Available vulkan devices:
0.84689|D|vulkan| - name:NVIDIA GeForce RTX 3060 vendor:4318 version:2416771072 type:Discrete
0.84689|D|vulkan| Trying to locate a vulkan device with type: Discrete
0.84690|D|vulkan| - Found vulkan device with suitable type: name:NVIDIA GeForce RTX 3060 vendor:4318 version:2416771072 type:Discrete
0.84704|D|vulkan| 247 supported Vk device extensions: VK_KHR_external_semaphore, VK_EXT_pci_bus_info, VK_KHR_acceleration_structure, VK_KHR_compute_shader_derivatives, VK_KHR_format_feature_flags2, VK_KHR_16bit_storage, VK_KHR_8bit_storage, VK_KHR_bind_memory2, VK_KHR_buffer_device_address, VK_KHR_calibrated_timestamps, VK_KHR_shader_atomic_int64, VK_KHR_cooperative_matrix, VK_KHR_maintenance5, VK_KHR_copy_commands2, VK_KHR_swapchain, VK_KHR_ray_tracing_position_fetch, VK_KHR_create_renderpass2, VK_KHR_shader_clock, VK_KHR_separate_depth_stencil_layouts, VK_KHR_dedicated_allocation, VK_KHR_relaxed_block_layout, VK_EXT_attachment_feedback_loop_layout, VK_KHR_shader_draw_parameters, VK_KHR_deferred_host_operations, VK_KHR_depth_stencil_resolve, VK_NVX_binary_import, VK_KHR_push_descriptor, VK_KHR_descriptor_update_template, VK_EXT_vertex_attribute_robustness, VK_KHR_device_group, VK_KHR_draw_indirect_count, VK_NV_shader_image_footprint, VK_KHR_ray_tracing_pipeline, VK_KHR_driver_properties, VK_KHR_dynamic_rendering, VK_EXT_4444_formats, VK_KHR_maintenance6, VK_KHR_dynamic_rendering_local_read, VK_KHR_sampler_ycbcr_conversion, VK_KHR_present_wait, VK_KHR_external_fence, VK_KHR_variable_pointers, VK_KHR_external_fence_win32, VK_KHR_external_memory, VK_KHR_external_memory_win32, VK_KHR_pipeline_library, VK_KHR_external_semaphore_win32, VK_EXT_vertex_input_dynamic_state, VK_EXT_conditional_rendering, VK_KHR_fragment_shader_barycentric, VK_KHR_global_priority, VK_KHR_fragment_shading_rate, VK_NV_inherited_viewport_scissor, VK_KHR_get_memory_requirements2, VK_KHR_image_format_list, VK_KHR_sampler_mirror_clamp_to_edge, VK_KHR_line_rasterization, VK_KHR_imageless_framebuffer, VK_KHR_multiview, VK_KHR_index_type_uint8, VK_KHR_load_store_op_none, VK_KHR_maintenance1, VK_KHR_maintenance2, VK_KHR_maintenance3, VK_KHR_ray_query, VK_EXT_post_depth_coverage, VK_KHR_maintenance4, VK_KHR_maintenance7, VK_KHR_ray_tracing_maintenance1, VK_KHR_pipeline_binary, VK_KHR_map_memory2, VK_KHR_pipeline_executable_properties, VK_EXT_extended_dynamic_state, VK_KHR_shader_float_controls, VK_KHR_present_id, VK_KHR_shader_expect_assume, VK_KHR_shader_float16_int8, VK_EXT_extended_dynamic_state2, VK_KHR_shader_float_controls2, VK_KHR_shader_integer_dot_product, VK_NV_shader_atomic_float16_vector, VK_KHR_shader_maximal_reconvergence, VK_KHR_shader_non_semantic_info, VK_KHR_video_encode_quantization_map, VK_KHR_shader_quad_control, VK_EXT_graphics_pipeline_library, VK_KHR_shader_relaxed_extended_instruction, VK_KHR_shader_subgroup_extended_types, VK_EXT_tooling_info, VK_KHR_shader_subgroup_rotate, VK_KHR_shader_subgroup_uniform_control_flow, VK_KHR_shader_terminate_invocation, VK_KHR_spirv_1_4, VK_EXT_host_query_reset, VK_KHR_storage_buffer_storage_class, VK_KHR_swapchain_mutable_format, VK_EXT_pipeline_library_group_handles, VK_KHR_synchronization2, VK_KHR_timeline_semaphore, VK_KHR_uniform_buffer_standard_layout, VK_EXT_shader_subgroup_vote, VK_KHR_vertex_attribute_divisor, VK_KHR_video_decode_av1, VK_KHR_video_decode_h264, VK_KHR_video_decode_h265, VK_KHR_video_decode_queue, VK_NV_acquire_winrt_display, VK_KHR_video_encode_h264, VK_KHR_video_encode_h265, VK_KHR_video_encode_queue, VK_KHR_video_maintenance1, VK_KHR_video_maintenance2, VK_KHR_video_queue, VK_KHR_vulkan_memory_model, VK_EXT_depth_clip_enable, VK_KHR_win32_keyed_mutex, VK_KHR_workgroup_memory_explicit_layout, VK_NV_sample_mask_override_coverage, VK_KHR_zero_initialize_workgroup_memory, VK_NV_fragment_shader_barycentric, VK_EXT_attachment_feedback_loop_dynamic_state, VK_EXT_multi_draw, VK_EXT_blend_operation_advanced, VK_EXT_border_color_swizzle, VK_EXT_buffer_device_address, VK_EXT_calibrated_timestamps, VK_EXT_color_write_enable, VK_EXT_conservative_rasterization, VK_EXT_image_view_min_lod, VK_EXT_custom_border_color, VK_EXT_depth_bias_control, VK_EXT_depth_clamp_control, VK_EXT_depth_clamp_zero_one, VK_EXT_depth_clip_control, VK_EXT_hdr_metadata, VK_EXT_depth_range_unrestricted, VK_EXT_descriptor_buffer, VK_NV_clip_space_w_scaling, VK_EXT_descriptor_indexing, VK_EXT_shader_module_identifier, VK_EXT_device_address_binding_report, VK_EXT_device_fault, VK_EXT_device_generated_commands, VK_EXT_discard_rectangles, VK_EXT_shader_replicated_composites, VK_EXT_dynamic_rendering_unused_attachments, VK_EXT_extended_dynamic_state3, VK_NV_fragment_coverage_to_color, VK_EXT_external_memory_host, VK_EXT_fragment_shader_interlock, VK_EXT_full_screen_exclusive, VK_EXT_global_priority, VK_EXT_global_priority_query, VK_EXT_host_image_copy, VK_EXT_image_2d_view_of_3d, VK_EXT_image_robustness, VK_GOOGLE_user_type, VK_EXT_image_sliced_view_of_3d, VK_NV_cooperative_matrix, VK_EXT_non_seamless_cube_map, VK_EXT_index_type_uint8, VK_NV_representative_fragment_test, VK_EXT_inline_uniform_block, VK_EXT_legacy_vertex_attributes, VK_EXT_line_rasterization, VK_EXT_load_store_op_none, VK_EXT_memory_budget, VK_NV_cooperative_matrix2, VK_EXT_separate_stencil_usage, VK_EXT_memory_priority, VK_NV_disk_cache_utils, VK_EXT_mesh_shader, VK_EXT_mutable_descriptor_type, VK_EXT_nested_command_buffer, VK_EXT_opacity_micromap, VK_EXT_pageable_device_local_memory, VK_EXT_swapchain_maintenance1, VK_EXT_pipeline_creation_cache_control, VK_EXT_pipeline_creation_feedback, VK_EXT_pipeline_robustness, VK_EXT_present_mode_fifo_latest_ready, VK_EXT_primitive_topology_list_restart, VK_EXT_primitives_generated_query, VK_EXT_private_data, VK_EXT_provoking_vertex, VK_EXT_queue_family_foreign, VK_EXT_robustness2, VK_EXT_sample_locations, VK_EXT_sampler_filter_minmax, VK_EXT_scalar_block_layout, VK_EXT_shader_atomic_float, VK_EXT_shader_demote_to_helper_invocation, VK_EXT_shader_image_atomic_int64, VK_NV_ray_tracing_invocation_reorder, VK_EXT_shader_object, VK_NV_optical_flow, VK_EXT_shader_subgroup_ballot, VK_NV_device_diagnostic_checkpoints, VK_EXT_shader_viewport_index_layer, VK_EXT_subgroup_size_control, VK_EXT_texel_buffer_alignment, VK_EXT_transform_feedback, VK_EXT_vertex_attribute_divisor, VK_EXT_ycbcr_2plane_444_formats, VK_EXT_ycbcr_image_arrays, VK_NV_internal_nvpresent, VK_NV_cluster_acceleration_structure, VK_NV_compute_shader_derivatives, VK_NV_cooperative_vector, VK_NV_copy_memory_indirect, VK_NV_corner_sampled_image, VK_NV_coverage_reduction_mode, VK_NV_cuda_kernel_launch, VK_NV_dedicated_allocation, VK_NV_dedicated_allocation_image_aliasing, VK_NV_descriptor_pool_overallocation, VK_NV_device_diagnostics_config, VK_NV_device_generated_commands, VK_NV_device_generated_commands_compute, VK_NV_external_compute_queue, VK_NV_external_memory, VK_NV_external_memory_win32, VK_NV_fill_rectangle, VK_NV_fragment_shading_rate_enums, VK_NV_framebuffer_mixed_samples, VK_NV_geometry_shader_passthrough, VK_NV_linear_color_attachment, VK_NV_low_latency, VK_NV_low_latency2, VK_NV_memory_decompression, VK_NV_mesh_shader, VK_NV_partitioned_acceleration_structure, VK_NV_present_metering, VK_NV_raw_access_chains, VK_NV_ray_tracing, VK_NV_ray_tracing_motion_blur, VK_NV_scissor_exclusive, VK_NV_shader_sm_builtins, VK_NV_shader_subgroup_partitioned, VK_NV_shading_rate_image, VK_NV_viewport_array2, VK_NV_viewport_swizzle, VK_NV_win32_keyed_mutex, VK_NVX_image_view_handle, VK_NVX_multiview_per_view_attributes, VK_AMD_buffer_marker, VK_GOOGLE_hlsl_functionality1
0.84741|D|vulkan| Attempting to create vulkan device with the following 28 vulkan device extensions: VK_KHR_swapchain, VK_EXT_memory_budget, VK_EXT_memory_priority, VK_NV_device_diagnostic_checkpoints, VK_EXT_robustness2, VK_KHR_fragment_shader_barycentric, VK_EXT_pageable_device_local_memory, VK_KHR_ray_query, VK_KHR_ray_tracing_pipeline, VK_KHR_acceleration_structure, VK_KHR_deferred_host_operations, VK_KHR_get_memory_requirements2, VK_KHR_image_format_list, VK_KHR_external_memory, VK_KHR_external_fence, VK_KHR_external_semaphore, VK_KHR_dedicated_allocation, VK_KHR_external_memory_win32, VK_KHR_external_fence_win32, VK_KHR_external_semaphore_win32, VK_EXT_queue_family_foreign, VK_KHR_bind_memory2, VK_KHR_create_renderpass2, VK_KHR_maintenance2, VK_KHR_multiview, VK_KHR_push_descriptor, VK_KHR_win32_keyed_mutex, VK_KHR_timeline_semaphore
1.01467|D|vulkan| Created Vulkan device from NVIDIA GeForce RTX 3060
1.01543|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'maxTextureWidth' to 8192.
1.01544|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'maxTextureHeight' to 8192.
1.01545|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'maxTextureSize' to 8192.
1.01546|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'autoMipMapLevel' to 1.
1.01547|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'lerpDetailBlend' to 1.
1.01547|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'fourStageDetailBlend' to 1.
Теперь я полностью потерян, потому что я пробовал все, чтобы заставить его работать, любая справка ценится
то, что я пробовал до сих пор:
vkcreatedevice and vkcreateswapchainkhrhr in vl Minhook
Получение адресов функции с помощью getProcadDress
Успешно создавая и включает в себя крючки без ошибок
. vkcreatedevice крючок никогда не запускает
Пробое петли ожидания (временные события), чтобы обнаружить нагрузку на нагрузку и устройства вулькана
Пробудный грубое применение (опрос) до улавливания подачи в устройстве. /> Проверенный vkcreateswappchainkhr крюк может быть установлен после создания устройства
подтвержденные нагрузки Vulkan DLL и задачи функций
/>
[*]
крюк никогда не вызывается, несмотря на успешный подключение
[*]
Возвращает допустимых указателей, но функция для подключения, по -видимому, обходит
[*] Проблемы с временем: слишком рано или слишком поздно зацепление может привести к тому, что крючки не запускают
Возможный интерферен с слоями погрузчика Vulkan или Implive Ainte Defore Cream p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> pruation
/> нужен надежный метод для зацепления или перехвата создания устройства Vulkan в приложениях < /p>
< /li>
< /ul>
Подробнее здесь:
https://stackoverflow.com/questions/796 ... ver-called
1751348911
Anonymous
В настоящее время я пытаюсь снизить разрешение внутреннего рендеринга из игры под названием «Beamng Drive» с использованием инъекции DLL. В Beamng я запускаю игру в режиме Vulkan, я вхожу в игру и ввожу в Minhook и свой составлен DLL в нее. Мой DLL вводит в Beamng, однако vkcreatedevice никогда ничего не возвращает. Код грязный, потому что я пытался «заставить» читать из vkcreatedevice: < /p> [code] #include "pch.h" #include #include #include #include #include #include "MinHook.h" #include std::ofstream logFile("C:\\temp\\vk_hook_log.txt", std::ios::app); #define LOG(msg) do { logFile imageExtent.height / 2; LOG("Trying downscale to 50%"); VkResult result; const int maxTries = 100; int tries = 0; do { result = original_vkCreateSwapchainKHR(device, &modifiedCreateInfo, pAllocator, pSwapchain); if (result == VK_SUCCESS) break; tries++; std::this_thread::sleep_for(std::chrono::milliseconds(10)); } while (tries < maxTries); if (result == VK_SUCCESS) { LOG("Downscale applied after " DLL_PROCESS_ATTACH[/code] [code]DLL Main Thread[/code] [code]started MinHook[/code] [code]Initialized vulkan-1.dll[/code] [code]loaded vkCreateDevice[/code] [code]found Hook for vkCreateDevice enabled[/code] [code]MainThread setup done[/code] [code]Thread started[/code] [code]Thread started[/code] [code]Thread started[/code] [code]Thread started[/code] [code]DLL_PROCESS_DETACH[/code] beamng Vullan, связанные с Vullan,: [code] 0.79928|D|vulkan| 8 Layers: VK_LAYER_NV_optimus, VK_LAYER_NV_present, VK_LAYER_OBS_HOOK, VK_LAYER_VALVE_steam_overlay, VK_LAYER_VALVE_steam_fossilize, VK_LAYER_EOS_Overlay, VK_LAYER_EOS_Overlay, VK_LAYER_ROCKSTAR_GAMES_social_club 0.79930|D|vulkan| Attempting to create vulkan instance with the following 8 instance extensions: VK_KHR_get_physical_device_properties2, VK_EXT_debug_utils, VK_KHR_surface, VK_KHR_external_memory_capabilities, VK_KHR_external_fence_capabilities, VK_KHR_external_semaphore_capabilities, VK_KHR_win32_surface, VK_NV_external_memory_capabilities 0.84686|D|vulkan| Available vulkan devices: 0.84689|D|vulkan| - name:NVIDIA GeForce RTX 3060 vendor:4318 version:2416771072 type:Discrete 0.84689|D|vulkan| Trying to locate a vulkan device with type: Discrete 0.84690|D|vulkan| - Found vulkan device with suitable type: name:NVIDIA GeForce RTX 3060 vendor:4318 version:2416771072 type:Discrete 0.84704|D|vulkan| 247 supported Vk device extensions: VK_KHR_external_semaphore, VK_EXT_pci_bus_info, VK_KHR_acceleration_structure, VK_KHR_compute_shader_derivatives, VK_KHR_format_feature_flags2, VK_KHR_16bit_storage, VK_KHR_8bit_storage, VK_KHR_bind_memory2, VK_KHR_buffer_device_address, VK_KHR_calibrated_timestamps, VK_KHR_shader_atomic_int64, VK_KHR_cooperative_matrix, VK_KHR_maintenance5, VK_KHR_copy_commands2, VK_KHR_swapchain, VK_KHR_ray_tracing_position_fetch, VK_KHR_create_renderpass2, VK_KHR_shader_clock, VK_KHR_separate_depth_stencil_layouts, VK_KHR_dedicated_allocation, VK_KHR_relaxed_block_layout, VK_EXT_attachment_feedback_loop_layout, VK_KHR_shader_draw_parameters, VK_KHR_deferred_host_operations, VK_KHR_depth_stencil_resolve, VK_NVX_binary_import, VK_KHR_push_descriptor, VK_KHR_descriptor_update_template, VK_EXT_vertex_attribute_robustness, VK_KHR_device_group, VK_KHR_draw_indirect_count, VK_NV_shader_image_footprint, VK_KHR_ray_tracing_pipeline, VK_KHR_driver_properties, VK_KHR_dynamic_rendering, VK_EXT_4444_formats, VK_KHR_maintenance6, VK_KHR_dynamic_rendering_local_read, VK_KHR_sampler_ycbcr_conversion, VK_KHR_present_wait, VK_KHR_external_fence, VK_KHR_variable_pointers, VK_KHR_external_fence_win32, VK_KHR_external_memory, VK_KHR_external_memory_win32, VK_KHR_pipeline_library, VK_KHR_external_semaphore_win32, VK_EXT_vertex_input_dynamic_state, VK_EXT_conditional_rendering, VK_KHR_fragment_shader_barycentric, VK_KHR_global_priority, VK_KHR_fragment_shading_rate, VK_NV_inherited_viewport_scissor, VK_KHR_get_memory_requirements2, VK_KHR_image_format_list, VK_KHR_sampler_mirror_clamp_to_edge, VK_KHR_line_rasterization, VK_KHR_imageless_framebuffer, VK_KHR_multiview, VK_KHR_index_type_uint8, VK_KHR_load_store_op_none, VK_KHR_maintenance1, VK_KHR_maintenance2, VK_KHR_maintenance3, VK_KHR_ray_query, VK_EXT_post_depth_coverage, VK_KHR_maintenance4, VK_KHR_maintenance7, VK_KHR_ray_tracing_maintenance1, VK_KHR_pipeline_binary, VK_KHR_map_memory2, VK_KHR_pipeline_executable_properties, VK_EXT_extended_dynamic_state, VK_KHR_shader_float_controls, VK_KHR_present_id, VK_KHR_shader_expect_assume, VK_KHR_shader_float16_int8, VK_EXT_extended_dynamic_state2, VK_KHR_shader_float_controls2, VK_KHR_shader_integer_dot_product, VK_NV_shader_atomic_float16_vector, VK_KHR_shader_maximal_reconvergence, VK_KHR_shader_non_semantic_info, VK_KHR_video_encode_quantization_map, VK_KHR_shader_quad_control, VK_EXT_graphics_pipeline_library, VK_KHR_shader_relaxed_extended_instruction, VK_KHR_shader_subgroup_extended_types, VK_EXT_tooling_info, VK_KHR_shader_subgroup_rotate, VK_KHR_shader_subgroup_uniform_control_flow, VK_KHR_shader_terminate_invocation, VK_KHR_spirv_1_4, VK_EXT_host_query_reset, VK_KHR_storage_buffer_storage_class, VK_KHR_swapchain_mutable_format, VK_EXT_pipeline_library_group_handles, VK_KHR_synchronization2, VK_KHR_timeline_semaphore, VK_KHR_uniform_buffer_standard_layout, VK_EXT_shader_subgroup_vote, VK_KHR_vertex_attribute_divisor, VK_KHR_video_decode_av1, VK_KHR_video_decode_h264, VK_KHR_video_decode_h265, VK_KHR_video_decode_queue, VK_NV_acquire_winrt_display, VK_KHR_video_encode_h264, VK_KHR_video_encode_h265, VK_KHR_video_encode_queue, VK_KHR_video_maintenance1, VK_KHR_video_maintenance2, VK_KHR_video_queue, VK_KHR_vulkan_memory_model, VK_EXT_depth_clip_enable, VK_KHR_win32_keyed_mutex, VK_KHR_workgroup_memory_explicit_layout, VK_NV_sample_mask_override_coverage, VK_KHR_zero_initialize_workgroup_memory, VK_NV_fragment_shader_barycentric, VK_EXT_attachment_feedback_loop_dynamic_state, VK_EXT_multi_draw, VK_EXT_blend_operation_advanced, VK_EXT_border_color_swizzle, VK_EXT_buffer_device_address, VK_EXT_calibrated_timestamps, VK_EXT_color_write_enable, VK_EXT_conservative_rasterization, VK_EXT_image_view_min_lod, VK_EXT_custom_border_color, VK_EXT_depth_bias_control, VK_EXT_depth_clamp_control, VK_EXT_depth_clamp_zero_one, VK_EXT_depth_clip_control, VK_EXT_hdr_metadata, VK_EXT_depth_range_unrestricted, VK_EXT_descriptor_buffer, VK_NV_clip_space_w_scaling, VK_EXT_descriptor_indexing, VK_EXT_shader_module_identifier, VK_EXT_device_address_binding_report, VK_EXT_device_fault, VK_EXT_device_generated_commands, VK_EXT_discard_rectangles, VK_EXT_shader_replicated_composites, VK_EXT_dynamic_rendering_unused_attachments, VK_EXT_extended_dynamic_state3, VK_NV_fragment_coverage_to_color, VK_EXT_external_memory_host, VK_EXT_fragment_shader_interlock, VK_EXT_full_screen_exclusive, VK_EXT_global_priority, VK_EXT_global_priority_query, VK_EXT_host_image_copy, VK_EXT_image_2d_view_of_3d, VK_EXT_image_robustness, VK_GOOGLE_user_type, VK_EXT_image_sliced_view_of_3d, VK_NV_cooperative_matrix, VK_EXT_non_seamless_cube_map, VK_EXT_index_type_uint8, VK_NV_representative_fragment_test, VK_EXT_inline_uniform_block, VK_EXT_legacy_vertex_attributes, VK_EXT_line_rasterization, VK_EXT_load_store_op_none, VK_EXT_memory_budget, VK_NV_cooperative_matrix2, VK_EXT_separate_stencil_usage, VK_EXT_memory_priority, VK_NV_disk_cache_utils, VK_EXT_mesh_shader, VK_EXT_mutable_descriptor_type, VK_EXT_nested_command_buffer, VK_EXT_opacity_micromap, VK_EXT_pageable_device_local_memory, VK_EXT_swapchain_maintenance1, VK_EXT_pipeline_creation_cache_control, VK_EXT_pipeline_creation_feedback, VK_EXT_pipeline_robustness, VK_EXT_present_mode_fifo_latest_ready, VK_EXT_primitive_topology_list_restart, VK_EXT_primitives_generated_query, VK_EXT_private_data, VK_EXT_provoking_vertex, VK_EXT_queue_family_foreign, VK_EXT_robustness2, VK_EXT_sample_locations, VK_EXT_sampler_filter_minmax, VK_EXT_scalar_block_layout, VK_EXT_shader_atomic_float, VK_EXT_shader_demote_to_helper_invocation, VK_EXT_shader_image_atomic_int64, VK_NV_ray_tracing_invocation_reorder, VK_EXT_shader_object, VK_NV_optical_flow, VK_EXT_shader_subgroup_ballot, VK_NV_device_diagnostic_checkpoints, VK_EXT_shader_viewport_index_layer, VK_EXT_subgroup_size_control, VK_EXT_texel_buffer_alignment, VK_EXT_transform_feedback, VK_EXT_vertex_attribute_divisor, VK_EXT_ycbcr_2plane_444_formats, VK_EXT_ycbcr_image_arrays, VK_NV_internal_nvpresent, VK_NV_cluster_acceleration_structure, VK_NV_compute_shader_derivatives, VK_NV_cooperative_vector, VK_NV_copy_memory_indirect, VK_NV_corner_sampled_image, VK_NV_coverage_reduction_mode, VK_NV_cuda_kernel_launch, VK_NV_dedicated_allocation, VK_NV_dedicated_allocation_image_aliasing, VK_NV_descriptor_pool_overallocation, VK_NV_device_diagnostics_config, VK_NV_device_generated_commands, VK_NV_device_generated_commands_compute, VK_NV_external_compute_queue, VK_NV_external_memory, VK_NV_external_memory_win32, VK_NV_fill_rectangle, VK_NV_fragment_shading_rate_enums, VK_NV_framebuffer_mixed_samples, VK_NV_geometry_shader_passthrough, VK_NV_linear_color_attachment, VK_NV_low_latency, VK_NV_low_latency2, VK_NV_memory_decompression, VK_NV_mesh_shader, VK_NV_partitioned_acceleration_structure, VK_NV_present_metering, VK_NV_raw_access_chains, VK_NV_ray_tracing, VK_NV_ray_tracing_motion_blur, VK_NV_scissor_exclusive, VK_NV_shader_sm_builtins, VK_NV_shader_subgroup_partitioned, VK_NV_shading_rate_image, VK_NV_viewport_array2, VK_NV_viewport_swizzle, VK_NV_win32_keyed_mutex, VK_NVX_image_view_handle, VK_NVX_multiview_per_view_attributes, VK_AMD_buffer_marker, VK_GOOGLE_hlsl_functionality1 0.84741|D|vulkan| Attempting to create vulkan device with the following 28 vulkan device extensions: VK_KHR_swapchain, VK_EXT_memory_budget, VK_EXT_memory_priority, VK_NV_device_diagnostic_checkpoints, VK_EXT_robustness2, VK_KHR_fragment_shader_barycentric, VK_EXT_pageable_device_local_memory, VK_KHR_ray_query, VK_KHR_ray_tracing_pipeline, VK_KHR_acceleration_structure, VK_KHR_deferred_host_operations, VK_KHR_get_memory_requirements2, VK_KHR_image_format_list, VK_KHR_external_memory, VK_KHR_external_fence, VK_KHR_external_semaphore, VK_KHR_dedicated_allocation, VK_KHR_external_memory_win32, VK_KHR_external_fence_win32, VK_KHR_external_semaphore_win32, VK_EXT_queue_family_foreign, VK_KHR_bind_memory2, VK_KHR_create_renderpass2, VK_KHR_maintenance2, VK_KHR_multiview, VK_KHR_push_descriptor, VK_KHR_win32_keyed_mutex, VK_KHR_timeline_semaphore 1.01467|D|vulkan| Created Vulkan device from NVIDIA GeForce RTX 3060 1.01543|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'maxTextureWidth' to 8192. 1.01544|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'maxTextureHeight' to 8192. 1.01545|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'maxTextureSize' to 8192. 1.01546|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'autoMipMapLevel' to 1. 1.01547|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'lerpDetailBlend' to 1. 1.01547|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'fourStageDetailBlend' to 1.zur hilfe, beamng interne logs zu vulkan: 0.79928|D|vulkan| 8 Layers: VK_LAYER_NV_optimus, VK_LAYER_NV_present, VK_LAYER_OBS_HOOK, VK_LAYER_VALVE_steam_overlay, VK_LAYER_VALVE_steam_fossilize, VK_LAYER_EOS_Overlay, VK_LAYER_EOS_Overlay, VK_LAYER_ROCKSTAR_GAMES_social_club 0.79930|D|vulkan| Attempting to create vulkan instance with the following 8 instance extensions: VK_KHR_get_physical_device_properties2, VK_EXT_debug_utils, VK_KHR_surface, VK_KHR_external_memory_capabilities, VK_KHR_external_fence_capabilities, VK_KHR_external_semaphore_capabilities, VK_KHR_win32_surface, VK_NV_external_memory_capabilities 0.84686|D|vulkan| Available vulkan devices: 0.84689|D|vulkan| - name:NVIDIA GeForce RTX 3060 vendor:4318 version:2416771072 type:Discrete 0.84689|D|vulkan| Trying to locate a vulkan device with type: Discrete 0.84690|D|vulkan| - Found vulkan device with suitable type: name:NVIDIA GeForce RTX 3060 vendor:4318 version:2416771072 type:Discrete 0.84704|D|vulkan| 247 supported Vk device extensions: VK_KHR_external_semaphore, VK_EXT_pci_bus_info, VK_KHR_acceleration_structure, VK_KHR_compute_shader_derivatives, VK_KHR_format_feature_flags2, VK_KHR_16bit_storage, VK_KHR_8bit_storage, VK_KHR_bind_memory2, VK_KHR_buffer_device_address, VK_KHR_calibrated_timestamps, VK_KHR_shader_atomic_int64, VK_KHR_cooperative_matrix, VK_KHR_maintenance5, VK_KHR_copy_commands2, VK_KHR_swapchain, VK_KHR_ray_tracing_position_fetch, VK_KHR_create_renderpass2, VK_KHR_shader_clock, VK_KHR_separate_depth_stencil_layouts, VK_KHR_dedicated_allocation, VK_KHR_relaxed_block_layout, VK_EXT_attachment_feedback_loop_layout, VK_KHR_shader_draw_parameters, VK_KHR_deferred_host_operations, VK_KHR_depth_stencil_resolve, VK_NVX_binary_import, VK_KHR_push_descriptor, VK_KHR_descriptor_update_template, VK_EXT_vertex_attribute_robustness, VK_KHR_device_group, VK_KHR_draw_indirect_count, VK_NV_shader_image_footprint, VK_KHR_ray_tracing_pipeline, VK_KHR_driver_properties, VK_KHR_dynamic_rendering, VK_EXT_4444_formats, VK_KHR_maintenance6, VK_KHR_dynamic_rendering_local_read, VK_KHR_sampler_ycbcr_conversion, VK_KHR_present_wait, VK_KHR_external_fence, VK_KHR_variable_pointers, VK_KHR_external_fence_win32, VK_KHR_external_memory, VK_KHR_external_memory_win32, VK_KHR_pipeline_library, VK_KHR_external_semaphore_win32, VK_EXT_vertex_input_dynamic_state, VK_EXT_conditional_rendering, VK_KHR_fragment_shader_barycentric, VK_KHR_global_priority, VK_KHR_fragment_shading_rate, VK_NV_inherited_viewport_scissor, VK_KHR_get_memory_requirements2, VK_KHR_image_format_list, VK_KHR_sampler_mirror_clamp_to_edge, VK_KHR_line_rasterization, VK_KHR_imageless_framebuffer, VK_KHR_multiview, VK_KHR_index_type_uint8, VK_KHR_load_store_op_none, VK_KHR_maintenance1, VK_KHR_maintenance2, VK_KHR_maintenance3, VK_KHR_ray_query, VK_EXT_post_depth_coverage, VK_KHR_maintenance4, VK_KHR_maintenance7, VK_KHR_ray_tracing_maintenance1, VK_KHR_pipeline_binary, VK_KHR_map_memory2, VK_KHR_pipeline_executable_properties, VK_EXT_extended_dynamic_state, VK_KHR_shader_float_controls, VK_KHR_present_id, VK_KHR_shader_expect_assume, VK_KHR_shader_float16_int8, VK_EXT_extended_dynamic_state2, VK_KHR_shader_float_controls2, VK_KHR_shader_integer_dot_product, VK_NV_shader_atomic_float16_vector, VK_KHR_shader_maximal_reconvergence, VK_KHR_shader_non_semantic_info, VK_KHR_video_encode_quantization_map, VK_KHR_shader_quad_control, VK_EXT_graphics_pipeline_library, VK_KHR_shader_relaxed_extended_instruction, VK_KHR_shader_subgroup_extended_types, VK_EXT_tooling_info, VK_KHR_shader_subgroup_rotate, VK_KHR_shader_subgroup_uniform_control_flow, VK_KHR_shader_terminate_invocation, VK_KHR_spirv_1_4, VK_EXT_host_query_reset, VK_KHR_storage_buffer_storage_class, VK_KHR_swapchain_mutable_format, VK_EXT_pipeline_library_group_handles, VK_KHR_synchronization2, VK_KHR_timeline_semaphore, VK_KHR_uniform_buffer_standard_layout, VK_EXT_shader_subgroup_vote, VK_KHR_vertex_attribute_divisor, VK_KHR_video_decode_av1, VK_KHR_video_decode_h264, VK_KHR_video_decode_h265, VK_KHR_video_decode_queue, VK_NV_acquire_winrt_display, VK_KHR_video_encode_h264, VK_KHR_video_encode_h265, VK_KHR_video_encode_queue, VK_KHR_video_maintenance1, VK_KHR_video_maintenance2, VK_KHR_video_queue, VK_KHR_vulkan_memory_model, VK_EXT_depth_clip_enable, VK_KHR_win32_keyed_mutex, VK_KHR_workgroup_memory_explicit_layout, VK_NV_sample_mask_override_coverage, VK_KHR_zero_initialize_workgroup_memory, VK_NV_fragment_shader_barycentric, VK_EXT_attachment_feedback_loop_dynamic_state, VK_EXT_multi_draw, VK_EXT_blend_operation_advanced, VK_EXT_border_color_swizzle, VK_EXT_buffer_device_address, VK_EXT_calibrated_timestamps, VK_EXT_color_write_enable, VK_EXT_conservative_rasterization, VK_EXT_image_view_min_lod, VK_EXT_custom_border_color, VK_EXT_depth_bias_control, VK_EXT_depth_clamp_control, VK_EXT_depth_clamp_zero_one, VK_EXT_depth_clip_control, VK_EXT_hdr_metadata, VK_EXT_depth_range_unrestricted, VK_EXT_descriptor_buffer, VK_NV_clip_space_w_scaling, VK_EXT_descriptor_indexing, VK_EXT_shader_module_identifier, VK_EXT_device_address_binding_report, VK_EXT_device_fault, VK_EXT_device_generated_commands, VK_EXT_discard_rectangles, VK_EXT_shader_replicated_composites, VK_EXT_dynamic_rendering_unused_attachments, VK_EXT_extended_dynamic_state3, VK_NV_fragment_coverage_to_color, VK_EXT_external_memory_host, VK_EXT_fragment_shader_interlock, VK_EXT_full_screen_exclusive, VK_EXT_global_priority, VK_EXT_global_priority_query, VK_EXT_host_image_copy, VK_EXT_image_2d_view_of_3d, VK_EXT_image_robustness, VK_GOOGLE_user_type, VK_EXT_image_sliced_view_of_3d, VK_NV_cooperative_matrix, VK_EXT_non_seamless_cube_map, VK_EXT_index_type_uint8, VK_NV_representative_fragment_test, VK_EXT_inline_uniform_block, VK_EXT_legacy_vertex_attributes, VK_EXT_line_rasterization, VK_EXT_load_store_op_none, VK_EXT_memory_budget, VK_NV_cooperative_matrix2, VK_EXT_separate_stencil_usage, VK_EXT_memory_priority, VK_NV_disk_cache_utils, VK_EXT_mesh_shader, VK_EXT_mutable_descriptor_type, VK_EXT_nested_command_buffer, VK_EXT_opacity_micromap, VK_EXT_pageable_device_local_memory, VK_EXT_swapchain_maintenance1, VK_EXT_pipeline_creation_cache_control, VK_EXT_pipeline_creation_feedback, VK_EXT_pipeline_robustness, VK_EXT_present_mode_fifo_latest_ready, VK_EXT_primitive_topology_list_restart, VK_EXT_primitives_generated_query, VK_EXT_private_data, VK_EXT_provoking_vertex, VK_EXT_queue_family_foreign, VK_EXT_robustness2, VK_EXT_sample_locations, VK_EXT_sampler_filter_minmax, VK_EXT_scalar_block_layout, VK_EXT_shader_atomic_float, VK_EXT_shader_demote_to_helper_invocation, VK_EXT_shader_image_atomic_int64, VK_NV_ray_tracing_invocation_reorder, VK_EXT_shader_object, VK_NV_optical_flow, VK_EXT_shader_subgroup_ballot, VK_NV_device_diagnostic_checkpoints, VK_EXT_shader_viewport_index_layer, VK_EXT_subgroup_size_control, VK_EXT_texel_buffer_alignment, VK_EXT_transform_feedback, VK_EXT_vertex_attribute_divisor, VK_EXT_ycbcr_2plane_444_formats, VK_EXT_ycbcr_image_arrays, VK_NV_internal_nvpresent, VK_NV_cluster_acceleration_structure, VK_NV_compute_shader_derivatives, VK_NV_cooperative_vector, VK_NV_copy_memory_indirect, VK_NV_corner_sampled_image, VK_NV_coverage_reduction_mode, VK_NV_cuda_kernel_launch, VK_NV_dedicated_allocation, VK_NV_dedicated_allocation_image_aliasing, VK_NV_descriptor_pool_overallocation, VK_NV_device_diagnostics_config, VK_NV_device_generated_commands, VK_NV_device_generated_commands_compute, VK_NV_external_compute_queue, VK_NV_external_memory, VK_NV_external_memory_win32, VK_NV_fill_rectangle, VK_NV_fragment_shading_rate_enums, VK_NV_framebuffer_mixed_samples, VK_NV_geometry_shader_passthrough, VK_NV_linear_color_attachment, VK_NV_low_latency, VK_NV_low_latency2, VK_NV_memory_decompression, VK_NV_mesh_shader, VK_NV_partitioned_acceleration_structure, VK_NV_present_metering, VK_NV_raw_access_chains, VK_NV_ray_tracing, VK_NV_ray_tracing_motion_blur, VK_NV_scissor_exclusive, VK_NV_shader_sm_builtins, VK_NV_shader_subgroup_partitioned, VK_NV_shading_rate_image, VK_NV_viewport_array2, VK_NV_viewport_swizzle, VK_NV_win32_keyed_mutex, VK_NVX_image_view_handle, VK_NVX_multiview_per_view_attributes, VK_AMD_buffer_marker, VK_GOOGLE_hlsl_functionality1 0.84741|D|vulkan| Attempting to create vulkan device with the following 28 vulkan device extensions: VK_KHR_swapchain, VK_EXT_memory_budget, VK_EXT_memory_priority, VK_NV_device_diagnostic_checkpoints, VK_EXT_robustness2, VK_KHR_fragment_shader_barycentric, VK_EXT_pageable_device_local_memory, VK_KHR_ray_query, VK_KHR_ray_tracing_pipeline, VK_KHR_acceleration_structure, VK_KHR_deferred_host_operations, VK_KHR_get_memory_requirements2, VK_KHR_image_format_list, VK_KHR_external_memory, VK_KHR_external_fence, VK_KHR_external_semaphore, VK_KHR_dedicated_allocation, VK_KHR_external_memory_win32, VK_KHR_external_fence_win32, VK_KHR_external_semaphore_win32, VK_EXT_queue_family_foreign, VK_KHR_bind_memory2, VK_KHR_create_renderpass2, VK_KHR_maintenance2, VK_KHR_multiview, VK_KHR_push_descriptor, VK_KHR_win32_keyed_mutex, VK_KHR_timeline_semaphore 1.01467|D|vulkan| Created Vulkan device from NVIDIA GeForce RTX 3060 1.01543|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'maxTextureWidth' to 8192. 1.01544|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'maxTextureHeight' to 8192. 1.01545|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'maxTextureSize' to 8192. 1.01546|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'autoMipMapLevel' to 1. 1.01547|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'lerpDetailBlend' to 1. 1.01547|D|gfx| GFXCardProfiler (Vulkan) - Setting capability 'fourStageDetailBlend' to 1. [/code] Теперь я полностью потерян, потому что я пробовал все, чтобы заставить его работать, любая справка ценится 🙏 то, что я пробовал до сих пор: [list] [*] vkcreatedevice and vkcreateswapchainkhrhr in vl Minhook [*] Получение адресов функции с помощью getProcadDress [*] Успешно создавая и включает в себя крючки без ошибок [*] . vkcreatedevice крючок никогда не запускает [*] Пробое петли ожидания (временные события), чтобы обнаружить нагрузку на нагрузку и устройства вулькана [*] Пробудный грубое применение (опрос) до улавливания подачи в устройстве. /> Проверенный vkcreateswappchainkhr крюк может быть установлен после создания устройства [*] подтвержденные нагрузки Vulkan DLL и задачи функций [/list] /> [*] [code]vkCreateDevice[/code] крюк никогда не вызывается, несмотря на успешный подключение [*] [code]GetProcAddress[/code] Возвращает допустимых указателей, но функция для подключения, по -видимому, обходит [*] Проблемы с временем: слишком рано или слишком поздно зацепление может привести к тому, что крючки не запускают Возможный интерферен с слоями погрузчика Vulkan или Implive Ainte Defore Cream p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> pruation /> нужен надежный метод для зацепления или перехвата создания устройства Vulkan в приложениях < /p> < /li> < /ul> Подробнее здесь: [url]https://stackoverflow.com/questions/79685573/vkcreatedevice-hook-with-minhook-in-vulkan-dll-not-working-never-called[/url]