Skip to content

Commit

Permalink
Disabled NV-only extension, fixed buffer usages
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelcluster committed Jan 5, 2022
1 parent f81b40a commit 5363e80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/RayTracingDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ void RayTracingDevice::init(bool enableHardwareRaytracing) {
deviceExtensionNames.reserve(1);
}
deviceExtensionNames.push_back(VK_KHR_SWAPCHAIN_EXTENSION_NAME);
deviceExtensionNames.push_back(VK_NV_DEVICE_DIAGNOSTICS_CONFIG_EXTENSION_NAME);
/*deviceExtensionNames.push_back(VK_NV_DEVICE_DIAGNOSTICS_CONFIG_EXTENSION_NAME);
deviceExtensionNames.push_back(VK_NV_DEVICE_DIAGNOSTIC_CHECKPOINTS_EXTENSION_NAME);
VkDeviceDiagnosticsConfigFlagsNV aftermathFlags =
Expand All @@ -228,10 +228,10 @@ void RayTracingDevice::init(bool enableHardwareRaytracing) {
VkDeviceDiagnosticsConfigCreateInfoNV aftermathInfo = {};
aftermathInfo.sType = VK_STRUCTURE_TYPE_DEVICE_DIAGNOSTICS_CONFIG_CREATE_INFO_NV;
aftermathInfo.pNext = &features;
aftermathInfo.flags = aftermathFlags;
aftermathInfo.flags = aftermathFlags;*/

VkDeviceCreateInfo deviceCreateInfo = { .sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO,
.pNext = &aftermathInfo,
.pNext = &features,
.queueCreateInfoCount = 1,
.pQueueCreateInfos = &deviceQueueCreateInfo,
.enabledLayerCount = static_cast<uint32_t>(instanceLayerNames.size()),
Expand Down
2 changes: 1 addition & 1 deletion src/util/AccelerationStructureBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ AccelerationStructureBuilder::AccelerationStructureBuilder(RayTracingDevice& dev
.usage = VK_BUFFER_USAGE_STORAGE_BUFFER_BIT |
VK_BUFFER_USAGE_TRANSFER_DST_BIT };
verifyResult(vkCreateBuffer(m_device.device(), &geometryIndexBufferCreateInfo, nullptr, &m_geometryIndexBuffer));
geometryIndexBufferCreateInfo.usage = VK_BUFFER_USAGE_TRANSFER_DST_BIT;
geometryIndexBufferCreateInfo.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT;
VkBuffer geometryIndexStagingBuffer;
verifyResult(vkCreateBuffer(m_device.device(), &geometryIndexBufferCreateInfo, nullptr, &geometryIndexStagingBuffer));

Expand Down

0 comments on commit 5363e80

Please sign in to comment.