rename Texture loader methods for clarity
parent
dd9140ef04
commit
0000450a81
|
@ -60,7 +60,7 @@ namespace MoonWorks.Test
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
Texture.SetDataFromFile(cmdbuf, textureSlice, imagePaths[i]);
|
Texture.SetDataFromImageFile(cmdbuf, textureSlice, imagePaths[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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")
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue