VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
vulkanUniformBinder.cpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025-2026 Arnis Lektauers
3//
4// Vulkan uniform binder — stub.
5//
6
7#ifdef VISUTWIN_HAS_VULKAN
8
10
11namespace visutwin::canvas
12{
13 void VulkanUniformBinder::resetPassState()
14 {
15 _materialBoundThisPass = false;
16 _lastBoundMaterial = nullptr;
17 }
18
19 bool VulkanUniformBinder::isMaterialChanged(const Material* mat) const
20 {
21 return !_materialBoundThisPass || mat != _lastBoundMaterial;
22 }
23}
24
25#endif // VISUTWIN_HAS_VULKAN
Base class for GPU materials — owns uniform data, texture bindings, blend/depth state,...
Definition material.h:143