summaryrefslogtreecommitdiff
path: root/src/render/pass
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-04-16 01:37:48 +0100
committerVaxry <vaxry@vaxry.net>2025-04-16 01:37:48 +0100
commit877fb5b93ada9b25b4d2f5ca5f69370fa345f1ac (patch)
tree5b52ad19c695590ae50c7adae06b8e3aeccf34c1 /src/render/pass
parent0e521788bcc414c9cf81648d3167757d83deb60f (diff)
time: move to stl's clocks and move timer
Diffstat (limited to 'src/render/pass')
-rw-r--r--src/render/pass/SurfacePassElement.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/pass/SurfacePassElement.hpp b/src/render/pass/SurfacePassElement.hpp
index 1b6ddb0b..4d51f804 100644
--- a/src/render/pass/SurfacePassElement.hpp
+++ b/src/render/pass/SurfacePassElement.hpp
@@ -1,6 +1,7 @@
#pragma once
#include "PassElement.hpp"
#include <optional>
+#include "../../helpers/time/Time.hpp"
class CWLSurfaceResource;
class CTexture;
@@ -10,7 +11,7 @@ class CSurfacePassElement : public IPassElement {
public:
struct SRenderData {
PHLMONITORREF pMonitor;
- timespec* when = nullptr;
+ Time::steady_tp when = Time::steadyNow();
Vector2D pos, localPos;
void* data = nullptr;