Files
SDL3CPlusPlus/tests/scripts/unit_cube_logic.lua
johndoe6345789 a5b47479d7 Refactor graphics service architecture and remove Vulkan-specific components
- Deleted VulkanGuiService and associated interfaces to streamline GUI rendering.
- Removed RenderGraphConfig and GraphicsBackendConfig, replacing them with BgfxConfig.
- Eliminated unused render graph structures and interfaces to simplify codebase.
- Updated IConfigService and IGraphicsBackend interfaces to reflect new configurations.
- Removed Vulkan device and buffer service interfaces to reduce complexity.
- Enhanced error handling and validation across Vulkan initialization and resource management.
- Updated unit tests to remove references to the obsolete render graph functionality.
2026-01-06 15:08:20 +00:00

43 lines
982 B
Lua

local function identity_matrix()
return {
1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0,
0.0, 0.0, 0.0, 1.0,
}
end
function get_scene_objects()
return {
{
vertices = {
{ position = {0.0, 0.0, 0.0}, color = {1.0, 0.0, 0.0} },
{ position = {1.0, 0.0, 0.0}, color = {0.0, 1.0, 0.0} },
{ position = {0.0, 1.0, 0.0}, color = {0.0, 0.0, 1.0} },
},
indices = {1, 2, 3},
compute_model_matrix = function(time)
return identity_matrix()
end,
shader_key = "test",
},
}
end
function get_shader_paths()
return {
test = {
vertex = "shaders/test.vert",
fragment = "shaders/test.frag",
},
}
end
function get_view_projection(aspect)
return identity_matrix()
end
function compute_model_matrix(time)
return identity_matrix()
end