mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-08-20 15:53:23 +02:00
copy_params: use constexpr for constructor
This commit is contained in:
parent
18d24fbdd0
commit
fb234560b0
@ -9,13 +9,14 @@
|
|||||||
namespace VideoCommon {
|
namespace VideoCommon {
|
||||||
|
|
||||||
struct CopyParams {
|
struct CopyParams {
|
||||||
CopyParams(u32 source_x, u32 source_y, u32 source_z, u32 dest_x, u32 dest_y, u32 dest_z,
|
constexpr CopyParams(u32 source_x, u32 source_y, u32 source_z, u32 dest_x, u32 dest_y,
|
||||||
u32 source_level, u32 dest_level, u32 width, u32 height, u32 depth)
|
u32 dest_z, u32 source_level, u32 dest_level, u32 width, u32 height,
|
||||||
|
u32 depth)
|
||||||
: source_x{source_x}, source_y{source_y}, source_z{source_z}, dest_x{dest_x},
|
: source_x{source_x}, source_y{source_y}, source_z{source_z}, dest_x{dest_x},
|
||||||
dest_y{dest_y}, dest_z{dest_z}, source_level{source_level},
|
dest_y{dest_y}, dest_z{dest_z}, source_level{source_level},
|
||||||
dest_level{dest_level}, width{width}, height{height}, depth{depth} {}
|
dest_level{dest_level}, width{width}, height{height}, depth{depth} {}
|
||||||
|
|
||||||
CopyParams(u32 width, u32 height, u32 depth, u32 level)
|
constexpr CopyParams(u32 width, u32 height, u32 depth, u32 level)
|
||||||
: source_x{}, source_y{}, source_z{}, dest_x{}, dest_y{}, dest_z{}, source_level{level},
|
: source_x{}, source_y{}, source_z{}, dest_x{}, dest_y{}, dest_z{}, source_level{level},
|
||||||
dest_level{level}, width{width}, height{height}, depth{depth} {}
|
dest_level{level}, width{width}, height{height}, depth{depth} {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user