use the texture's sample count in the ColorAttachmentInfo constructors

pull/29/head
Caleb Cornett 2022-11-02 18:20:32 -04:00
parent db38ada410
commit fd24536ecc
1 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ namespace MoonWorks.Graphics
Depth = 0; Depth = 0;
Layer = 0; Layer = 0;
Level = 0; Level = 0;
SampleCount = SampleCount.One; SampleCount = texture.SampleCount;
ClearColor = clearColor; ClearColor = clearColor;
LoadOp = LoadOp.Clear; LoadOp = LoadOp.Clear;
StoreOp = storeOp; StoreOp = storeOp;
@ -227,7 +227,7 @@ namespace MoonWorks.Graphics
Depth = 0; Depth = 0;
Layer = 0; Layer = 0;
Level = 0; Level = 0;
SampleCount = SampleCount.One; SampleCount = texture.SampleCount;
ClearColor = Color.White; ClearColor = Color.White;
LoadOp = loadOp; LoadOp = loadOp;
StoreOp = storeOp; StoreOp = storeOp;