Compare commits
2 Commits
adfa86ebe9
...
1f8f102ee1
| Author | SHA1 | Date |
|---|---|---|
|
|
1f8f102ee1 | |
|
|
cc4cffe989 |
|
|
@ -13,6 +13,8 @@
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
#include <glm/gtx/quaternion.hpp>
|
#include <glm/gtx/quaternion.hpp>
|
||||||
|
|
||||||
|
#include <atomic>
|
||||||
|
|
||||||
using c8 = char;
|
using c8 = char;
|
||||||
using u8 = uint8_t;
|
using u8 = uint8_t;
|
||||||
using u16 = uint16_t;
|
using u16 = uint16_t;
|
||||||
|
|
|
||||||
|
|
@ -247,7 +247,7 @@ struct fmt::formatter<eastl::fixed_string<TType, TCount, TOverflow>> : nested_fo
|
||||||
// ReSharper disable once CppInconsistentNaming
|
// ReSharper disable once CppInconsistentNaming
|
||||||
format(const eastl::fixed_string<TType, TCount, TOverflow> &str, format_context &ctx) const
|
format(const eastl::fixed_string<TType, TCount, TOverflow> &str, format_context &ctx) const
|
||||||
{
|
{
|
||||||
return write_padded(ctx, [this, str](auto out) { return v11::format_to(out, "{}", nested(str.c_str())); });
|
return write_padded(ctx, [this, str](auto out) { return fmt::format_to(out, "{}", nested(str.c_str())); });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -272,14 +272,14 @@ struct VertexInput
|
||||||
enum class ShaderType
|
enum class ShaderType
|
||||||
{
|
{
|
||||||
eInvalid = 0,
|
eInvalid = 0,
|
||||||
eVertex = vk::ShaderStageFlagBits::eVertex,
|
eVertex = VK_SHADER_STAGE_VERTEX_BIT,
|
||||||
eTesselationControl = vk::ShaderStageFlagBits::eTessellationControl,
|
eTesselationControl = VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT,
|
||||||
eTesselationEvaluation = vk::ShaderStageFlagBits::eTessellationEvaluation,
|
eTesselationEvaluation = VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT,
|
||||||
eGeometry = vk::ShaderStageFlagBits::eGeometry,
|
eGeometry = VK_SHADER_STAGE_GEOMETRY_BIT,
|
||||||
eFragment = vk::ShaderStageFlagBits::eFragment,
|
eFragment = VK_SHADER_STAGE_FRAGMENT_BIT,
|
||||||
eCompute = vk::ShaderStageFlagBits::eCompute,
|
eCompute = VK_SHADER_STAGE_COMPUTE_BIT,
|
||||||
eTask = vk::ShaderStageFlagBits::eTaskEXT,
|
eTask = VK_SHADER_STAGE_TASK_BIT_EXT,
|
||||||
eMesh = vk::ShaderStageFlagBits::eMeshEXT,
|
eMesh = VK_SHADER_STAGE_MESH_BIT_EXT,
|
||||||
eMax,
|
eMax,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -473,6 +473,8 @@ struct Frame
|
||||||
~Frame() = default;
|
~Frame() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class CommitManager;
|
||||||
|
|
||||||
class Device final
|
class Device final
|
||||||
{
|
{
|
||||||
public: // TODO: Temp
|
public: // TODO: Temp
|
||||||
|
|
|
||||||
|
|
@ -56,18 +56,18 @@ struct fmt::formatter<MemorySize>
|
||||||
// return format_to(ctx.out(), "({}, {})", foo.a, foo.b); // --== KEY LINE ==--
|
// return format_to(ctx.out(), "({}, {})", foo.a, foo.b); // --== KEY LINE ==--
|
||||||
if (mem.m_Gigabytes > 0)
|
if (mem.m_Gigabytes > 0)
|
||||||
{
|
{
|
||||||
return v11::format_to(ctx.out(), "{}.{} GB", mem.m_Gigabytes, static_cast<u16>(mem.m_Megabytes / 1024.0));
|
return fmt::format_to(ctx.out(), "{}.{} GB", mem.m_Gigabytes, static_cast<u16>(mem.m_Megabytes / 1024.0));
|
||||||
}
|
}
|
||||||
if (mem.m_Megabytes > 0)
|
if (mem.m_Megabytes > 0)
|
||||||
{
|
{
|
||||||
return v11::format_to(ctx.out(), "{}.{} MB", mem.m_Megabytes, static_cast<u16>(mem.m_Kilobytes / 1024.0));
|
return fmt::format_to(ctx.out(), "{}.{} MB", mem.m_Megabytes, static_cast<u16>(mem.m_Kilobytes / 1024.0));
|
||||||
}
|
}
|
||||||
if (mem.m_Kilobytes > 0)
|
if (mem.m_Kilobytes > 0)
|
||||||
{
|
{
|
||||||
return v11::format_to(ctx.out(), "{}.{} KB", mem.m_Kilobytes, static_cast<u16>(mem.m_Bytes / 1024.0));
|
return fmt::format_to(ctx.out(), "{}.{} KB", mem.m_Kilobytes, static_cast<u16>(mem.m_Bytes / 1024.0));
|
||||||
}
|
}
|
||||||
|
|
||||||
return v11::format_to(ctx.out(), "{} Bytes", mem.m_Bytes);
|
return fmt::format_to(ctx.out(), "{} Bytes", mem.m_Bytes);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1070,6 +1070,7 @@ systems::Device::Device(const DeviceCreateInfo &createInfo)
|
||||||
std::array compilerOptions = {
|
std::array compilerOptions = {
|
||||||
useOriginalEntrypointNames,
|
useOriginalEntrypointNames,
|
||||||
bindlessSpaceIndex,
|
bindlessSpaceIndex,
|
||||||
|
scalarLayout,
|
||||||
};
|
};
|
||||||
|
|
||||||
const slang::TargetDesc spirvTargetDesc = {
|
const slang::TargetDesc spirvTargetDesc = {
|
||||||
|
|
|
||||||
12
flake.lock
12
flake.lock
|
|
@ -20,16 +20,16 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738734093,
|
"lastModified": 1742976680,
|
||||||
"narHash": "sha256-UEYOKfXXKU49fR7dGB05As0s2pGbLK4xDo48Qtdm7xs=",
|
"narHash": "sha256-Lcyi6YyR0PgN5rOrmM6mM/1MJIYhGi6rrq0+eiqvUb4=",
|
||||||
"owner": "NixOS",
|
"owner": "kidrigger",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5b2753b0356d1c951d7a3ef1d086ba5a71fff43c",
|
"rev": "51cf54bdbd9c1a0a2f833cced82451df0d9c25bd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "kidrigger",
|
||||||
"ref": "nixpkgs-unstable",
|
"ref": "imgui-docking",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "github:kidrigger/nixpkgs/imgui-docking";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
outputs = {self, nixpkgs, flake-utils }:
|
outputs = {self, nixpkgs, flake-utils }:
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
ccls
|
ccls
|
||||||
clang-tools
|
clang-tools
|
||||||
lldb
|
lldb
|
||||||
(imgui.override {IMGUI_BUILD_VULKAN_BINDING = true; IMGUI_BUILD_GLFW_BINDING=true; })
|
(imgui.override {IMGUI_BUILD_VULKAN_BINDING = true; IMGUI_BUILD_GLFW_BINDING=true; IMGUI_EXPERIMENTAL_DOCKING = true; })
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
|
@ -50,6 +50,7 @@
|
||||||
directx-shader-compiler
|
directx-shader-compiler
|
||||||
glslang
|
glslang
|
||||||
shaderc
|
shaderc
|
||||||
|
shader-slang
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
38
shell.nix
38
shell.nix
|
|
@ -1,38 +0,0 @@
|
||||||
{ pkgs ? import <nixpkgs> {} }:
|
|
||||||
|
|
||||||
let eabase = pkgs.callPackage ./vendored-nix/eabase {}; in
|
|
||||||
let eastl = pkgs.callPackage ./vendored-nix/eastl { inherit eabase; }; in
|
|
||||||
let tinygltf = pkgs.callPackage ./vendored-nix/tinygltf {}; in
|
|
||||||
let debugbreak = pkgs.callPackage ./vendored-nix/scottt-debugbreak {}; in
|
|
||||||
|
|
||||||
pkgs.clangStdenv.mkDerivation {
|
|
||||||
name = "aster-env";
|
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
|
||||||
cmake
|
|
||||||
ninja
|
|
||||||
(imgui.override {IMGUI_BUILD_VULKAN_BINDING = true; IMGUI_BUILD_GLFW_BINDING=true; })
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
|
||||||
glm
|
|
||||||
glfw3
|
|
||||||
eastl
|
|
||||||
fmt
|
|
||||||
eabase
|
|
||||||
eastl
|
|
||||||
entt
|
|
||||||
tinygltf
|
|
||||||
debugbreak
|
|
||||||
stb
|
|
||||||
|
|
||||||
# vulkan
|
|
||||||
vulkan-headers
|
|
||||||
vulkan-loader
|
|
||||||
vulkan-validation-layers
|
|
||||||
vulkan-memory-allocator
|
|
||||||
directx-shader-compiler
|
|
||||||
glslang
|
|
||||||
shaderc
|
|
||||||
];
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue