working RT
This commit is contained in:
parent
e4e7c66808
commit
8b2fd773b1
6 changed files with 52 additions and 53 deletions
|
|
@ -46,6 +46,7 @@ export namespace Crafter {
|
|||
inline static PFN_vkGetAccelerationStructureDeviceAddressKHR vkGetAccelerationStructureDeviceAddressKHR;
|
||||
inline static PFN_vkCreateRayTracingPipelinesKHR vkCreateRayTracingPipelinesKHR;
|
||||
inline static PFN_vkGetRayTracingShaderGroupHandlesKHR vkGetRayTracingShaderGroupHandlesKHR;
|
||||
inline static PFN_vkCmdTraceRaysKHR vkCmdTraceRaysKHR;
|
||||
inline static VkPhysicalDeviceMemoryProperties memoryProperties;
|
||||
inline static VkPhysicalDeviceRayTracingPipelinePropertiesKHR rayTracingProperties = {
|
||||
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_PROPERTIES_KHR
|
||||
|
|
|
|||
|
|
@ -53,8 +53,8 @@ export namespace Crafter {
|
|||
case VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL:
|
||||
return VK_ACCESS_TRANSFER_WRITE_BIT;
|
||||
case VK_IMAGE_LAYOUT_GENERAL:
|
||||
assert(false && "Don't know how to get a meaningful VkAccessFlags for VK_IMAGE_LAYOUT_GENERAL! Don't use it!");
|
||||
return 0;
|
||||
//assert(false && "Don't know how to get a meaningful VkAccessFlags for VK_IMAGE_LAYOUT_GENERAL! Don't use it!");
|
||||
return VK_ACCESS_SHADER_WRITE_BIT;
|
||||
default:
|
||||
assert(false);
|
||||
return 0;
|
||||
|
|
@ -83,8 +83,8 @@ export namespace Crafter {
|
|||
case VK_IMAGE_LAYOUT_PRESENT_SRC_KHR:
|
||||
return VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT;
|
||||
case VK_IMAGE_LAYOUT_GENERAL:
|
||||
assert(false && "Don't know how to get a meaningful VkPipelineStageFlags for VK_IMAGE_LAYOUT_GENERAL! Don't use it!");
|
||||
return 0;
|
||||
//assert(false && "Don't know how to get a meaningful VkPipelineStageFlags for VK_IMAGE_LAYOUT_GENERAL! Don't use it!");
|
||||
return VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR;
|
||||
default:
|
||||
assert(false);
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@ export namespace Crafter {
|
|||
constexpr static wp_fractional_scale_v1_listener wp_fractional_scale_v1_listener = {
|
||||
.preferred_scale = xdg_surface_handle_preferred_scale,
|
||||
};
|
||||
private:
|
||||
void CreateSwapchain();
|
||||
VkSurfaceKHR vulkanSurface = VK_NULL_HANDLE;
|
||||
VkSwapchainKHR swapChain = VK_NULL_HANDLE;
|
||||
|
|
@ -390,7 +389,7 @@ export namespace Crafter {
|
|||
std::vector<VkImageView> imageViews;
|
||||
std::thread thread;
|
||||
std::vector<VkCommandBuffer> drawCmdBuffers;
|
||||
std::vector<VkFramebuffer> frameBuffers;
|
||||
//std::vector<VkFramebuffer> frameBuffers;
|
||||
VkSubmitInfo submitInfo;
|
||||
Semaphores semaphores;
|
||||
uint32_t currentBuffer = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue