Refresh 1.6.0

custom_video_shaders
cosmonaut 2022-08-25 12:32:49 -07:00
parent 0c6bb538fb
commit 1af16231ce
4 changed files with 37 additions and 5 deletions

@ -1 +1 @@
Subproject commit 98c590ae77c3b6a64a370bac439f20728959a8b6 Subproject commit c378027989dbc4233c7ead476aba4e22b335ba0f

View File

@ -616,6 +616,36 @@ namespace MoonWorks.Graphics
); );
} }
/// <summary>
/// Similar to DrawPrimitives, but parameters are set from a buffer.
/// </summary>
/// <param name="buffer">The draw parameters buffer.</param>
/// <param name="offsetInBytes">The offset to start reading from the draw parameters buffer.</param>
/// <param name="drawCount">The number of draw parameter sets that should be read from the buffer.</param>
/// <param name="stride">The byte stride between sets of draw parameters.</param>
/// <param name="vertexParamOffset">An offset value obtained from PushVertexShaderUniforms. If no uniforms are required then use 0.</param>
/// <param name="fragmentParamOffset">An offset value obtained from PushFragmentShaderUniforms. If no uniforms are required the use 0.</param>
public void DrawPrimitivesIndirect(
Buffer buffer,
uint offsetInBytes,
uint drawCount,
uint stride,
uint vertexParamOffset,
uint fragmentParamOffset
)
{
Refresh.Refresh_DrawPrimitivesIndirect(
Device.Handle,
Handle,
buffer.Handle,
offsetInBytes,
drawCount,
stride,
vertexParamOffset,
fragmentParamOffset
);
}
/// <summary> /// <summary>
/// Ends the current render pass. /// Ends the current render pass.
/// This must be called before beginning another render pass or submitting the command buffer. /// This must be called before beginning another render pass or submitting the command buffer.

View File

@ -91,7 +91,8 @@ namespace MoonWorks.Graphics
{ {
Sampler = 1, Sampler = 1,
ColorTarget = 2, ColorTarget = 2,
DepthStencilTarget = 4 DepthStencilTarget = 4,
Compute = 8
} }
public enum SampleCount public enum SampleCount
@ -120,7 +121,8 @@ namespace MoonWorks.Graphics
{ {
Vertex = 1, Vertex = 1,
Index = 2, Index = 2,
Compute = 4 Compute = 4,
Indirect = 8
} }
public enum VertexElementFormat public enum VertexElementFormat

View File

@ -69,7 +69,7 @@
{ {
CullMode = CullMode.None, CullMode = CullMode.None,
FrontFace = FrontFace.Clockwise, FrontFace = FrontFace.Clockwise,
FillMode = FillMode.Fill, FillMode = FillMode.Line,
DepthBiasEnable = false DepthBiasEnable = false
}; };
@ -101,7 +101,7 @@
{ {
CullMode = CullMode.None, CullMode = CullMode.None,
FrontFace = FrontFace.CounterClockwise, FrontFace = FrontFace.CounterClockwise,
FillMode = FillMode.Fill, FillMode = FillMode.Line,
DepthBiasEnable = false DepthBiasEnable = false
}; };
} }