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;
GraphicsPipelineLayoutInfo pipelineLayoutInfo = new GraphicsPipelineLayoutInfo
{
VertexSamplerBindingCount = 0,
FragmentSamplerBindingCount = 1
};
GraphicsPipelineLayoutInfo pipelineLayoutInfo = new GraphicsPipelineLayoutInfo(0, 1);
RasterizerState rasterizerState = RasterizerState.CCW_CullNone;
@ -119,35 +115,7 @@ namespace MoonWorksComputeSpriteBatch
VertexAttributes = vertexAttributes
};
var viewports = new Viewport[1]
{
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
};
ViewportState viewportState = new ViewportState((int)windowWidth, (int)windowHeight);
var colorAttachmentDescriptions = new ColorAttachmentDescription[1]
{