summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/node.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-01-24 15:44:34 +0100
committerFernandoS27 <fsahmkow27@gmail.com>2020-01-25 14:04:59 +0100
commitbb8eb15d392d69693f8cda0427669d011e23db97 (patch)
treecebd080530de75e7b5400f46c25c307a80e3c222 /src/video_core/shader/node.h
parentShader_IR: Change name of TrackSampler function so it does not confuse with the type. (diff)
downloadyuzu-bb8eb15d392d69693f8cda0427669d011e23db97.tar
yuzu-bb8eb15d392d69693f8cda0427669d011e23db97.tar.gz
yuzu-bb8eb15d392d69693f8cda0427669d011e23db97.tar.bz2
yuzu-bb8eb15d392d69693f8cda0427669d011e23db97.tar.lz
yuzu-bb8eb15d392d69693f8cda0427669d011e23db97.tar.xz
yuzu-bb8eb15d392d69693f8cda0427669d011e23db97.tar.zst
yuzu-bb8eb15d392d69693f8cda0427669d011e23db97.zip
Diffstat (limited to 'src/video_core/shader/node.h')
-rw-r--r--src/video_core/shader/node.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/video_core/shader/node.h b/src/video_core/shader/node.h
index d75453458..53a551d27 100644
--- a/src/video_core/shader/node.h
+++ b/src/video_core/shader/node.h
@@ -291,7 +291,7 @@ public:
return size;
}
- void SetSize(u32 new_size) {
+ constexpr void SetSize(u32 new_size) {
size = new_size;
}
@@ -315,15 +315,15 @@ public:
explicit ArraySamplerNode(u32 index, u32 base_offset, u32 bindless_var)
: index{index}, base_offset{base_offset}, bindless_var{bindless_var} {}
- u32 GetIndex() const {
+ constexpr u32 GetIndex() const {
return index;
}
- u32 GetBaseOffset() const {
+ constexpr u32 GetBaseOffset() const {
return base_offset;
}
- u32 GetIndexVar() const {
+ constexpr u32 GetIndexVar() const {
return bindless_var;
}
@@ -338,11 +338,11 @@ class BindlessSamplerNode final {
public:
explicit BindlessSamplerNode(u32 index, u32 offset) : index{index}, offset{offset} {}
- u32 GetIndex() const {
+ constexpr u32 GetIndex() const {
return index;
}
- u32 GetOffset() const {
+ constexpr u32 GetOffset() const {
return offset;
}
@@ -557,7 +557,7 @@ class CustomVarNode final {
public:
explicit constexpr CustomVarNode(u32 index) : index{index} {}
- u32 GetIndex() const {
+ constexpr u32 GetIndex() const {
return index;
}