Skip to content

Commit

Permalink
Update Vulkan SDK to 1.3.280.
Browse files Browse the repository at this point in the history
Fix validation errors.
  • Loading branch information
GPSnoopy committed Apr 10, 2024
1 parent 2a84be6 commit 4272cff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:

runs-on: ubuntu-22.04
env:
SDK_VERSION: 1.3.268
SDK_VERSION: 1.3.280

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:

runs-on: windows-2022
env:
SDK_VERSION: 1.3.268.0
SDK_VERSION: 1.3.280.0

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions src/Vulkan/RayTracing/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ void Application::CreateBottomLevelStructures(VkCommandBuffer commandBuffer)
// Allocate the structures memory.
const auto total = GetTotalRequirements(bottomAs_);

bottomBuffer_.reset(new Buffer(Device(), total.accelerationStructureSize, VK_BUFFER_USAGE_ACCELERATION_STRUCTURE_STORAGE_BIT_KHR));
bottomBufferMemory_.reset(new DeviceMemory(bottomBuffer_->AllocateMemory(VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT)));
bottomBuffer_.reset(new Buffer(Device(), total.accelerationStructureSize, VK_BUFFER_USAGE_ACCELERATION_STRUCTURE_STORAGE_BIT_KHR | VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT));
bottomBufferMemory_.reset(new DeviceMemory(bottomBuffer_->AllocateMemory(VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT)));
bottomScratchBuffer_.reset(new Buffer(Device(), total.buildScratchSize, VK_BUFFER_USAGE_ACCELERATION_STRUCTURE_STORAGE_BIT_KHR | VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT | VK_BUFFER_USAGE_STORAGE_BUFFER_BIT));
bottomScratchBufferMemory_.reset(new DeviceMemory(bottomScratchBuffer_->AllocateMemory(VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT)));

Expand Down

0 comments on commit 4272cff

Please sign in to comment.