diff options
| author | 2020-01-24 10:44:34 -0400 | |
|---|---|---|
| committer | 2020-01-25 09:04:59 -0400 | |
| commit | bb8eb15d392d69693f8cda0427669d011e23db97 (patch) | |
| tree | cebd080530de75e7b5400f46c25c307a80e3c222 /src/video_core/shader/node.h | |
| parent | Shader_IR: Change name of TrackSampler function so it does not confuse with t... (diff) | |
| download | yuzu-bb8eb15d392d69693f8cda0427669d011e23db97.tar.gz yuzu-bb8eb15d392d69693f8cda0427669d011e23db97.tar.xz yuzu-bb8eb15d392d69693f8cda0427669d011e23db97.zip | |
Shader_IR: Address feedback.
Diffstat (limited to 'src/video_core/shader/node.h')
| -rw-r--r-- | src/video_core/shader/node.h | 14 |
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: | |||
| 291 | return size; | 291 | return size; |
| 292 | } | 292 | } |
| 293 | 293 | ||
| 294 | void SetSize(u32 new_size) { | 294 | constexpr void SetSize(u32 new_size) { |
| 295 | size = new_size; | 295 | size = new_size; |
| 296 | } | 296 | } |
| 297 | 297 | ||
| @@ -315,15 +315,15 @@ public: | |||
| 315 | explicit ArraySamplerNode(u32 index, u32 base_offset, u32 bindless_var) | 315 | explicit ArraySamplerNode(u32 index, u32 base_offset, u32 bindless_var) |
| 316 | : index{index}, base_offset{base_offset}, bindless_var{bindless_var} {} | 316 | : index{index}, base_offset{base_offset}, bindless_var{bindless_var} {} |
| 317 | 317 | ||
| 318 | u32 GetIndex() const { | 318 | constexpr u32 GetIndex() const { |
| 319 | return index; | 319 | return index; |
| 320 | } | 320 | } |
| 321 | 321 | ||
| 322 | u32 GetBaseOffset() const { | 322 | constexpr u32 GetBaseOffset() const { |
| 323 | return base_offset; | 323 | return base_offset; |
| 324 | } | 324 | } |
| 325 | 325 | ||
| 326 | u32 GetIndexVar() const { | 326 | constexpr u32 GetIndexVar() const { |
| 327 | return bindless_var; | 327 | return bindless_var; |
| 328 | } | 328 | } |
| 329 | 329 | ||
| @@ -338,11 +338,11 @@ class BindlessSamplerNode final { | |||
| 338 | public: | 338 | public: |
| 339 | explicit BindlessSamplerNode(u32 index, u32 offset) : index{index}, offset{offset} {} | 339 | explicit BindlessSamplerNode(u32 index, u32 offset) : index{index}, offset{offset} {} |
| 340 | 340 | ||
| 341 | u32 GetIndex() const { | 341 | constexpr u32 GetIndex() const { |
| 342 | return index; | 342 | return index; |
| 343 | } | 343 | } |
| 344 | 344 | ||
| 345 | u32 GetOffset() const { | 345 | constexpr u32 GetOffset() const { |
| 346 | return offset; | 346 | return offset; |
| 347 | } | 347 | } |
| 348 | 348 | ||
| @@ -557,7 +557,7 @@ class CustomVarNode final { | |||
| 557 | public: | 557 | public: |
| 558 | explicit constexpr CustomVarNode(u32 index) : index{index} {} | 558 | explicit constexpr CustomVarNode(u32 index) : index{index} {} |
| 559 | 559 | ||
| 560 | u32 GetIndex() const { | 560 | constexpr u32 GetIndex() const { |
| 561 | return index; | 561 | return index; |
| 562 | } | 562 | } |
| 563 | 563 | ||