mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
rsx/common: Use a typed class for texture dimension.
This commit is contained in:
parent
d53a1d10ab
commit
f2c82d3cf4
10 changed files with 78 additions and 43 deletions
|
@ -124,18 +124,18 @@ std::vector<rsx_subresource_layout> get_subresources_layout(const rsx::texture &
|
|||
u16 depth;
|
||||
u8 layer;
|
||||
|
||||
if (texture.dimension() == 1)
|
||||
if (texture.dimension() == rsx::texture_dimension::dimension1d)
|
||||
{
|
||||
depth = 1;
|
||||
layer = 1;
|
||||
h = 1;
|
||||
}
|
||||
else if (texture.dimension() == 2)
|
||||
else if (texture.dimension() == rsx::texture_dimension::dimension2d)
|
||||
{
|
||||
depth = 1;
|
||||
layer = texture.cubemap() ? 6 : 1;
|
||||
}
|
||||
else if (texture.dimension() == 3)
|
||||
else if (texture.dimension() == rsx::texture_dimension::dimension3d)
|
||||
{
|
||||
depth = texture.depth();
|
||||
layer = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue