Skip to content

Commit

Permalink
CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe2933 committed Feb 1, 2025
1 parent c2c31fd commit 7cde0b9
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions interface/vulkan/buffer/CombinedIndices.cppm
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
module;

#include <vulkan/vulkan_hpp_macros.hpp>

export module vk_gltf_viewer:vulkan.buffer.CombinedIndices;

import std;
Expand Down
6 changes: 5 additions & 1 deletion interface/vulkan/buffer/InstancedNodeWorldTransforms.cppm
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
module;

#include <vulkan/vulkan_hpp_macros.hpp>

export module vk_gltf_viewer:vulkan.buffer.InstancedNodeWorldTransforms;

import std;
Expand Down Expand Up @@ -33,7 +37,7 @@ namespace vk_gltf_viewer::vulkan::buffer {
* @tparam BufferDataAdapter A functor type that acquires the binary buffer data from a glTF buffer view.
* @param asset glTF asset.
* @param nodeWorldTransforms pre-calculated node world transforms.
* @param gpu Vulkan GPU.
* @param allocator VMA allocator.
* @param adapter Buffer data adapter.
* @note This will fill the buffer data with each node's local transform (and post-multiplied instance transforms if presented), as the scene structure is not provided. You have to call <tt>update</tt> to update the world transforms.
*/
Expand Down
4 changes: 3 additions & 1 deletion interface/vulkan/buffer/PrimitiveAttributes.cppm
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
module;

#include <cassert>

#include <mikktspace.h>
#include <vulkan/vulkan_hpp_macros.hpp>

export module vk_gltf_viewer:vulkan.buffer.PrimitiveAttributes;

Expand Down Expand Up @@ -116,7 +118,7 @@ namespace vk_gltf_viewer::vulkan::buffer {

// Hashmap that can get buffer device address by corresponding buffer view index.
const vk::DeviceAddress bufferAddress = gpu.device.getBufferAddress({ internalBuffers.emplace_back(std::move(buffer)) });
const std::unordered_map bufferDeviceAddressMappings { std::from_range, std::views::zip(
const std::unordered_map<std::size_t, vk::DeviceAddress> bufferDeviceAddressMappings { std::from_range, std::views::zip(
attributeBufferViewIndices,
copyOffsets | std::views::transform([&](vk::DeviceSize offset) {
return bufferAddress + offset;
Expand Down
1 change: 1 addition & 0 deletions interface/vulkan/buffer/Primitives.cppm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module;

#include <cstddef>
#include <vulkan/vulkan_hpp_macros.hpp>

export module vk_gltf_viewer:vulkan.buffer.Primitives;

Expand Down
1 change: 1 addition & 0 deletions interface/vulkan/buffer/StagingBufferStorage.cppm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module;

#include <boost/container/small_vector.hpp>
#include <vulkan/vulkan_hpp_macros.hpp>

export module vk_gltf_viewer:vulkan.buffer.StagingBufferStorage;

Expand Down
4 changes: 4 additions & 0 deletions interface/vulkan/buffer/mod.cppm
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
module;

#include <vulkan/vulkan_hpp_macros.hpp>

export module vk_gltf_viewer:vulkan.buffer;

import std;
Expand Down

0 comments on commit 7cde0b9

Please sign in to comment.