diff options
| author | 2019-06-25 17:42:50 -0400 | |
|---|---|---|
| committer | 2019-06-25 17:42:50 -0400 | |
| commit | fb234560b060e528d66a77815330766e5aa88594 (patch) | |
| tree | 745d177467f0e6f75d5a02c87538a826e2665761 /src | |
| parent | gl_texture_cache: Corrections and fixes (diff) | |
| download | yuzu-fb234560b060e528d66a77815330766e5aa88594.tar.gz yuzu-fb234560b060e528d66a77815330766e5aa88594.tar.xz yuzu-fb234560b060e528d66a77815330766e5aa88594.zip | |
copy_params: use constexpr for constructor
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/texture_cache/copy_params.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/texture_cache/copy_params.h b/src/video_core/texture_cache/copy_params.h index 8cf010142..9c21a0649 100644 --- a/src/video_core/texture_cache/copy_params.h +++ b/src/video_core/texture_cache/copy_params.h | |||
| @@ -9,13 +9,14 @@ | |||
| 9 | namespace VideoCommon { | 9 | namespace VideoCommon { |
| 10 | 10 | ||
| 11 | struct CopyParams { | 11 | struct CopyParams { |
| 12 | CopyParams(u32 source_x, u32 source_y, u32 source_z, u32 dest_x, u32 dest_y, u32 dest_z, | 12 | constexpr CopyParams(u32 source_x, u32 source_y, u32 source_z, u32 dest_x, u32 dest_y, |
| 13 | u32 source_level, u32 dest_level, u32 width, u32 height, u32 depth) | 13 | u32 dest_z, u32 source_level, u32 dest_level, u32 width, u32 height, |
| 14 | u32 depth) | ||
| 14 | : source_x{source_x}, source_y{source_y}, source_z{source_z}, dest_x{dest_x}, | 15 | : source_x{source_x}, source_y{source_y}, source_z{source_z}, dest_x{dest_x}, |
| 15 | dest_y{dest_y}, dest_z{dest_z}, source_level{source_level}, | 16 | dest_y{dest_y}, dest_z{dest_z}, source_level{source_level}, |
| 16 | dest_level{dest_level}, width{width}, height{height}, depth{depth} {} | 17 | dest_level{dest_level}, width{width}, height{height}, depth{depth} {} |
| 17 | 18 | ||
| 18 | CopyParams(u32 width, u32 height, u32 depth, u32 level) | 19 | constexpr CopyParams(u32 width, u32 height, u32 depth, u32 level) |
| 19 | : source_x{}, source_y{}, source_z{}, dest_x{}, dest_y{}, dest_z{}, source_level{level}, | 20 | : source_x{}, source_y{}, source_z{}, dest_x{}, dest_y{}, dest_z{}, source_level{level}, |
| 20 | dest_level{level}, width{width}, height{height}, depth{depth} {} | 21 | dest_level{level}, width{width}, height{height}, depth{depth} {} |
| 21 | 22 | ||