add store ops to depth stencil attach info struct
parent
bb0b6daa91
commit
c1085db9c5
|
@ -268,7 +268,12 @@ namespace MoonWorks.Graphics
|
||||||
public LoadOp StencilLoadOp;
|
public LoadOp StencilLoadOp;
|
||||||
public StoreOp StencilStoreOp;
|
public StoreOp StencilStoreOp;
|
||||||
|
|
||||||
public DepthStencilAttachmentInfo(Texture texture, DepthStencilValue clearValue)
|
public DepthStencilAttachmentInfo(
|
||||||
|
Texture texture,
|
||||||
|
DepthStencilValue clearValue,
|
||||||
|
StoreOp depthStoreOp = StoreOp.Store,
|
||||||
|
StoreOp stencilStoreOp = StoreOp.Store
|
||||||
|
)
|
||||||
{
|
{
|
||||||
Texture = texture;
|
Texture = texture;
|
||||||
Depth = 0;
|
Depth = 0;
|
||||||
|
@ -276,9 +281,9 @@ namespace MoonWorks.Graphics
|
||||||
Level = 0;
|
Level = 0;
|
||||||
DepthStencilClearValue = clearValue;
|
DepthStencilClearValue = clearValue;
|
||||||
LoadOp = LoadOp.Clear;
|
LoadOp = LoadOp.Clear;
|
||||||
StoreOp = StoreOp.DontCare;
|
StoreOp = depthStoreOp;
|
||||||
StencilLoadOp = LoadOp.Clear;
|
StencilLoadOp = LoadOp.Clear;
|
||||||
StencilStoreOp = StoreOp.DontCare;
|
StencilStoreOp = stencilStoreOp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DepthStencilAttachmentInfo(
|
public DepthStencilAttachmentInfo(
|
||||||
|
|
Loading…
Reference in New Issue