Skip to content

Commit

Permalink
Merge branch 'master' of github.com:oddkiva/sara
Browse files Browse the repository at this point in the history
  • Loading branch information
oddkiva committed Dec 11, 2023
2 parents d318d3d + a9c9dbf commit 92bbde1
Show file tree
Hide file tree
Showing 45 changed files with 1,283 additions and 148 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def run_project_tests(build_dir: str, build_type: str,
command_line.append("|".join(tests_excluded))

if PROJECT_TYPE == "Xcode":
command_line += ["--config", build_type]
command_line += ["-C", build_type]

execute(command_line, build_dir)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ namespace DO::Sara {
comment += "\n\tsquaredEll = " + to_string(squared_ell);
comment += "\n\tK = " + to_string(K);
comment += "\n\trho_min = " + to_string(rho_min);
comment + "_inlierThres_" + to_string(inlier_thres);
comment += "\n\tinlierThres = " + to_string(inlier_thres);
print_stage(comment);

// Get subset of matches.
Expand Down
3 changes: 1 addition & 2 deletions cpp/examples/Shakti/Vulkan/Common/HostUniforms.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ struct ModelViewProjectionStack
{
model.setIdentity();
view.setIdentity();
projection.setIdentity();
}

Eigen::Transform<float, 3, Eigen::Projective> model;
Eigen::Transform<float, 3, Eigen::Projective> view;
Eigen::Transform<float, 3, Eigen::Projective> projection;
Eigen::Matrix4f projection = Eigen::Matrix4f::Identity();
};
3 changes: 2 additions & 1 deletion cpp/examples/Shakti/Vulkan/hello_vulkan_image/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ target_link_libraries(
hello_vulkan_image
PRIVATE SignalHandler #
DO::Sara::Core #
DO::Sara::ImageIO #
DO::Sara::ImageProcessing #
DO::Sara::VideoIO #
DO::Shakti::Vulkan)
set_target_properties(hello_vulkan_image PROPERTIES FOLDER
"Examples/Shakti/Vulkan")
Expand Down
15 changes: 4 additions & 11 deletions cpp/examples/Shakti/Vulkan/hello_vulkan_image/Geometry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
struct Vertex
{
Eigen::Vector2f pos;
Eigen::Vector3f color;
Eigen::Vector2f uv;

static auto get_binding_description() -> VkVertexInputBindingDescription
Expand All @@ -38,25 +37,19 @@ struct Vertex
-> std::vector<VkVertexInputAttributeDescription>
{
auto attribute_descriptions =
std::vector<VkVertexInputAttributeDescription>(3);
std::vector<VkVertexInputAttributeDescription>(2);

// Position
attribute_descriptions[0].binding = 0;
attribute_descriptions[0].location = 0;
attribute_descriptions[0].format = VK_FORMAT_R32G32_SFLOAT;
attribute_descriptions[0].offset = offsetof(Vertex, pos);

// Color
// UV texture coords
attribute_descriptions[1].binding = 0;
attribute_descriptions[1].location = 1;
attribute_descriptions[1].format = VK_FORMAT_R32G32B32_SFLOAT;
attribute_descriptions[1].offset = offsetof(Vertex, color);

// UV texture coords
attribute_descriptions[2].binding = 0;
attribute_descriptions[2].location = 2;
attribute_descriptions[2].format = VK_FORMAT_R32G32_SFLOAT;
attribute_descriptions[2].offset = offsetof(Vertex, uv);
attribute_descriptions[1].format = VK_FORMAT_R32G32_SFLOAT;
attribute_descriptions[1].offset = offsetof(Vertex, uv);

return attribute_descriptions;
}
Expand Down
Loading

0 comments on commit 92bbde1

Please sign in to comment.