rename Texture loader methods for clarity

pull/2/head
cosmonaut 2023-04-19 00:52:12 -07:00
parent dd9140ef04
commit 0000450a81
5 changed files with 8 additions and 8 deletions

View File

@ -60,7 +60,7 @@ namespace MoonWorks.Test
0 0
); );
Texture.SetDataFromFile(cmdbuf, textureSlice, imagePaths[i]); Texture.SetDataFromImageFile(cmdbuf, textureSlice, imagePaths[i]);
} }
} }

View File

@ -80,7 +80,7 @@ namespace MoonWorks.Test
i i
); );
Texture.SetDataFromFile( Texture.SetDataFromImageFile(
cmdbuf, cmdbuf,
slice, slice,
TestUtils.GetTexturePath($"tex3d_{i}.png") TestUtils.GetTexturePath($"tex3d_{i}.png")

View File

@ -80,7 +80,7 @@ namespace MoonWorks.Test
(uint) i (uint) i
); );
Texture.SetDataFromFile(cmdbuf, slice, TestUtils.GetTexturePath($"mip{i}.png")); Texture.SetDataFromImageFile(cmdbuf, slice, TestUtils.GetTexturePath($"mip{i}.png"));
} }
GraphicsDevice.Submit(cmdbuf); GraphicsDevice.Submit(cmdbuf);

View File

@ -68,7 +68,7 @@ namespace MoonWorks.Test
0, 2, 3, 0, 2, 3,
} }
); );
texture = Texture.FromFile(GraphicsDevice, cmdbuf, TestUtils.GetTexturePath("ravioli.png")); texture = Texture.FromImageFile(GraphicsDevice, cmdbuf, TestUtils.GetTexturePath("ravioli.png"));
GraphicsDevice.Submit(cmdbuf); GraphicsDevice.Submit(cmdbuf);
} }

View File

@ -94,10 +94,10 @@ namespace MoonWorks.Test
0, 2, 3, 0, 2, 3,
} }
); );
textures[0] = Texture.FromFile(GraphicsDevice, cmdbuf, TestUtils.GetTexturePath("ravioli.png")); textures[0] = Texture.FromImageFile(GraphicsDevice, cmdbuf, TestUtils.GetTexturePath("ravioli.png"));
textures[1] = Texture.FromData(GraphicsDevice, cmdbuf, pngBytes); textures[1] = Texture.FromImageBytes(GraphicsDevice, cmdbuf, pngBytes);
textures[2] = Texture.FromFile(GraphicsDevice, cmdbuf, TestUtils.GetTexturePath("ravioli.qoi")); textures[2] = Texture.FromImageFile(GraphicsDevice, cmdbuf, TestUtils.GetTexturePath("ravioli.qoi"));
textures[3] = Texture.FromData(GraphicsDevice, cmdbuf, qoiBytes); textures[3] = Texture.FromImageBytes(GraphicsDevice, cmdbuf, qoiBytes);
GraphicsDevice.Submit(cmdbuf); GraphicsDevice.Submit(cmdbuf);
} }