mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-25 00:20:16 +00:00
Vulcan Nightmare
Experimentally bringing up vulcan support
This commit is contained in:
parent
863a786c48
commit
83b576e8d9
189 changed files with 12147 additions and 7820 deletions
29
include/rendering/vk_frame_data.hpp
Normal file
29
include/rendering/vk_frame_data.hpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#pragma once
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
namespace wowee {
|
||||
namespace rendering {
|
||||
|
||||
// Must match the PerFrame UBO layout in all shaders (std140 alignment)
|
||||
struct GPUPerFrameData {
|
||||
glm::mat4 view;
|
||||
glm::mat4 projection;
|
||||
glm::mat4 lightSpaceMatrix;
|
||||
glm::vec4 lightDir; // xyz = direction, w = unused
|
||||
glm::vec4 lightColor; // xyz = color, w = unused
|
||||
glm::vec4 ambientColor; // xyz = color, w = unused
|
||||
glm::vec4 viewPos; // xyz = camera pos, w = unused
|
||||
glm::vec4 fogColor; // xyz = color, w = unused
|
||||
glm::vec4 fogParams; // x = fogStart, y = fogEnd, z = time, w = unused
|
||||
glm::vec4 shadowParams; // x = enabled(0/1), y = strength, z = unused, w = unused
|
||||
};
|
||||
|
||||
// Push constants for the model matrix (most common case)
|
||||
struct GPUPushConstants {
|
||||
glm::mat4 model;
|
||||
};
|
||||
|
||||
} // namespace rendering
|
||||
} // namespace wowee
|
||||
Loading…
Add table
Add a link
Reference in a new issue