| 1081 | } |
| 1082 | |
| 1083 | static inline void SetViewportHelper(VkCommandBuffer vk_command_buffer, int32_t x, int32_t y, int32_t width, int32_t height) |
| 1084 | { |
| 1085 | VkViewport vk_viewport; |
| 1086 | vk_viewport.x = (float) x; |
| 1087 | vk_viewport.y = (float) y; |
| 1088 | vk_viewport.width = (float) width; |
| 1089 | vk_viewport.height = (float) height; |
| 1090 | vk_viewport.minDepth = 0.0f; |
| 1091 | vk_viewport.maxDepth = 1.0f; |
| 1092 | vkCmdSetViewport(vk_command_buffer, 0, 1, &vk_viewport); |
| 1093 | } |
| 1094 | |
| 1095 | static bool IsDeviceExtensionSupported(PhysicalDevice* device, const char* ext_name) |
| 1096 | { |