Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/vcpkg/test/vcpkg-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
"kind": "git",
"repository": "https://github.com/cppfw/vcpkg-repo/",
"baseline": "093bba6063d6ab425b9d77e570ac3b0858b916b5",
"baseline": "f76627645ebc3b525f13a244a3ede6029b62244c",
"reference": "main",
"packages": [
"myci",
Expand Down
8 changes: 5 additions & 3 deletions src/ruis/render/vulkan/shaders/shader_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ void vulkan_shader_render(
)
{
// use the currently active context (set by ruis::render::context::apply()),
// not the context stored in the shader (which may be the shared resource-loader context).
// not the context stored in the shader (which may be the shared resource-loader context)
auto& cur = ruis::render::context::current();
utki::assert(dynamic_cast<const context*>(&cur) != nullptr, SL);
auto& ctx =
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-const-cast, cppcoreguidelines-pro-type-static-cast-downcast, "the context is owned by the renderer; the const qualifier comes from the ruis API")
const_cast<context&>(static_cast<const context&>(ruis::render::context::current()));
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-static-cast-downcast, "assert(dynamic_cast) done above")
static_cast<context&>(cur);

const bool textured = shader_has_texture(kind);

Expand Down
5 changes: 1 addition & 4 deletions src/ruis/render/vulkan/shaders/shader_pos_tex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ void shader_pos_tex::render(
// textured quads always use alpha blending so that transparent/empty
// textures do not overwrite the background
{
auto& ctx =
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-static-cast-downcast, "vulkan context")
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-const-cast)
const_cast<ruis::render::context&>(ruis::render::context::current());
auto& ctx = ruis::render::context::current();
ctx.enable_blend(true);
ctx.set_blend_func(
ruis::render::context::blend_factor::src_alpha, //
Expand Down
Loading