simplified graphics state a bit

main
cosmonaut 2022-02-25 18:01:57 -08:00
parent f50295848a
commit 9384ad4d4a
2 changed files with 3 additions and 35 deletions

@ -1 +1 @@
Subproject commit 32b269526f6e24f695dece00871fec0c5812ca20 Subproject commit 7328cbc13dc0e1f156689aeeae2fd5ae4be24084

View File

@ -70,11 +70,7 @@ namespace MoonWorksComputeSpriteBatch
MultisampleState multisampleState = MultisampleState.None; MultisampleState multisampleState = MultisampleState.None;
GraphicsPipelineLayoutInfo pipelineLayoutInfo = new GraphicsPipelineLayoutInfo GraphicsPipelineLayoutInfo pipelineLayoutInfo = new GraphicsPipelineLayoutInfo(0, 1);
{
VertexSamplerBindingCount = 0,
FragmentSamplerBindingCount = 1
};
RasterizerState rasterizerState = RasterizerState.CCW_CullNone; RasterizerState rasterizerState = RasterizerState.CCW_CullNone;
@ -119,35 +115,7 @@ namespace MoonWorksComputeSpriteBatch
VertexAttributes = vertexAttributes VertexAttributes = vertexAttributes
}; };
var viewports = new Viewport[1] ViewportState viewportState = new ViewportState((int)windowWidth, (int)windowHeight);
{
new Viewport
{
X = 0,
Y = 0,
W = windowWidth,
H = windowHeight,
MinDepth = 0,
MaxDepth = 1
}
};
var scissors = new Rect[1]
{
new Rect
{
X = 0,
Y = 0,
W = (int) windowWidth,
H = (int) windowHeight
}
};
ViewportState viewportState = new ViewportState
{
Viewports = viewports,
Scissors = scissors
};
var colorAttachmentDescriptions = new ColorAttachmentDescription[1] var colorAttachmentDescriptions = new ColorAttachmentDescription[1]
{ {