Skip to content

Commit 7777d80

Browse files
committed
GLM_FORCE_ROW_MAJOR削除
1 parent 0485806 commit 7777d80

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

include/reactive/math.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
#define GLM_FORCE_SWIZZLE
55
#define GLM_FORCE_RADIANS
66
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
7-
#define GLM_FORCE_ROW_MAJOR
87
#include <glm/glm.hpp>
98
#include <glm/gtx/hash.hpp>
109
#include <glm/gtc/type_ptr.hpp>
1110
#include <glm/gtx/transform.hpp>
1211
#include <glm/gtc/quaternion.hpp>
1312
#include <glm/gtx/quaternion.hpp>
1413
#include <glm/gtx/string_cast.hpp>
14+
#include <glm/gtc/matrix_inverse.hpp>
1515
#include <glm/gtc/matrix_transform.hpp>

sample/hello_compute/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set(TARGET_NAME "HelloCompute")
44

55
file(GLOB_RECURSE sources *.cpp)
66
file(GLOB_RECURSE headers *.hpp)
7-
file(GLOB_RECURSE shaders shader/*)
7+
file(GLOB_RECURSE shaders *.slang)
88
add_executable(${TARGET_NAME} ${sources} ${headers} ${shaders})
99

1010
source_group("Shader Files" FILES ${shaders})

sample/hello_graphics/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set(TARGET_NAME "HelloGraphics")
44

55
file(GLOB_RECURSE sources *.cpp)
66
file(GLOB_RECURSE headers *.hpp)
7-
file(GLOB_RECURSE shaders shader/*)
7+
file(GLOB_RECURSE shaders *.slang)
88
add_executable(${TARGET_NAME} ${sources} ${headers} ${shaders})
99

1010
source_group("Shader Files" FILES ${shaders})

sample/hello_mesh_shader/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set(TARGET_NAME "HelloMeshShader")
44

55
file(GLOB_RECURSE sources *.cpp)
66
file(GLOB_RECURSE headers *.hpp)
7-
file(GLOB_RECURSE shaders shader/*)
7+
file(GLOB_RECURSE shaders *.slang)
88
add_executable(${TARGET_NAME} ${sources} ${headers} ${shaders})
99

1010
source_group("Shader Files" FILES ${shaders})

sample/hello_raytracing/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set(TARGET_NAME "HelloRaytracing")
44

55
file(GLOB_RECURSE sources *.cpp)
66
file(GLOB_RECURSE headers *.hpp)
7-
file(GLOB_RECURSE shaders shader/*)
7+
file(GLOB_RECURSE shaders *.slang)
88
add_executable(${TARGET_NAME} ${sources} ${headers} ${shaders})
99

1010
source_group("Shader Files" FILES ${shaders})

src/Graphics/DescriptorSet.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ DescriptorSet::DescriptorSet(const Context& context, const DescriptorSetCreateIn
1919

2020
// 各リソースのディスクリプタ情報を設定
2121
for (const auto& [name, buffers] : createInfo.buffers) {
22-
RV_ASSERT(m_descriptors.contains(name), "Unknown m_buffer m_name. Resource m_name must match the m_name on the m_shader.");
22+
RV_ASSERT(m_descriptors.contains(name), "Unknown buffer name({}). Resource name must match the name on the shader.", name);
2323
if (std::holds_alternative<uint32_t>(buffers)) {
2424
m_descriptors[name].binding.setDescriptorCount(std::get<uint32_t>(buffers));
2525
} else {
2626
set(name, std::get<ArrayProxy<BufferHandle>>(buffers));
2727
}
2828
}
2929
for (const auto& [name, images] : createInfo.images) {
30-
RV_ASSERT(m_descriptors.contains(name), "Unknown m_image m_name. Resource m_name must match the m_name on the m_shader.");
30+
RV_ASSERT(m_descriptors.contains(name), "Unknown image name({}). Resource name must match the name on the shader.", name);
3131
if (std::holds_alternative<uint32_t>(images)) {
3232
m_descriptors[name].binding.setDescriptorCount(std::get<uint32_t>(images));
3333
} else {
3434
set(name, std::get<ArrayProxy<ImageHandle>>(images));
3535
}
3636
}
3737
for (const auto& [name, accels] : createInfo.accels) {
38-
RV_ASSERT(m_descriptors.contains(name), "Unknown m_accel m_name. Resource m_name must match the m_name on the m_shader.");
38+
RV_ASSERT(m_descriptors.contains(name), "Unknown accel name({}). Resource name must match the name on the shader.", name);
3939
if (std::holds_alternative<uint32_t>(accels)) {
4040
m_descriptors[name].binding.setDescriptorCount(std::get<uint32_t>(accels));
4141
} else {

src/Scene/Camera.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void Camera::processMouseDragLeft(glm::vec2 dragDelta) {
3131
m_eulerRotation.x = m_eulerRotation.x - dragDelta.y * 0.001f;
3232
m_eulerRotation.y = m_eulerRotation.y - dragDelta.x * 0.001f;
3333
} else {
34-
m_eulerRotation.x = m_eulerRotation.x + dragDelta.y * 0.002f;
34+
m_eulerRotation.x = m_eulerRotation.x - dragDelta.y * 0.002f;
3535
m_eulerRotation.y = m_eulerRotation.y - dragDelta.x * 0.002f;
3636
}
3737
}

0 commit comments

Comments
 (0)