Texture importer now supports mip maps

This commit is contained in:
Simon Lübeß
2023-07-06 17:06:59 +02:00
parent a507eeb1cd
commit 76bff3a6c1
9 changed files with 631 additions and 168 deletions
+3 -1
View File
@@ -368,7 +368,9 @@ namespace GlitchyEngine.Renderer
s_whiteTexture = new Texture2D(tex2Ddesc);
Color color = .White;
s_whiteTexture.SetData(&color);
TextureSliceData[1] data = .(.(&color, sizeof(Color), sizeof(Color)));
s_whiteTexture.SetData(data);
// Create the default sampler for the white texture
SamplerState sampler = SamplerStateManager.GetSampler(SamplerStateDescription());