Skip to content

Commit

Permalink
Fix defaults on advanced stream out
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvux committed Jun 24, 2017
1 parent 541af17 commit 37db8e0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ public class DX11AdvancedStreamOutRendererNode : IPluginEvaluate, IDX11RendererH
[Input("Output Layout Element Count", Order = 10006, DefaultValue = -1)]
protected IDiffSpread<int> FInLayoutsElementCount;

[Input("Attach Index Buffer", Order = 10006, DefaultValue = -1, Visibility = PinVisibility.Hidden)]
[Input("Attach Index Buffer", Order = 10006, DefaultValue = 0, Visibility = PinVisibility.Hidden)]
protected IDiffSpread<bool> FAttachIndexBuffer;

[Input("Vertex Buffer Binding", Order = 10006, DefaultValue = -1, Visibility = PinVisibility.Hidden)]
[Input("Vertex Buffer Binding", Order = 10006, DefaultValue = 0, Visibility = PinVisibility.Hidden)]
protected IDiffSpread<int> FInVertexBufferBinding;

[Input("Index Buffer Binding", Order = 10006, DefaultValue = -1, Visibility = PinVisibility.Hidden)]
[Input("Index Buffer Binding", Order = 10006, DefaultValue = 0, Visibility = PinVisibility.Hidden)]
protected IDiffSpread<int> FInIndexBufferBinding;

[Input("Enabled", DefaultValue = 1, Order = 15)]
Expand Down Expand Up @@ -270,7 +270,7 @@ public void Update(DX11RenderContext context)
elems[j] = this.FInLayouts[currentOffset++];
}

this.outputBuffer[index] = new StreamOutputBufferWithRawSupport(context, DeviceFormatHelper.ComputeVertexSize(this.FInVSize[index], this.FInLayouts.ToArray()),
this.outputBuffer[index] = new StreamOutputBufferWithRawSupport(context, DeviceFormatHelper.ComputeVertexSize(this.FInVSize[index], elems),
this.FInElemCount[index], this.FinOutputDrawMode[index], attachIndex, elems);
this.FOutSlices[index][context] = this.outputBuffer[index].VertexGeometry;
this.FOutBuffer[index][context] = this.outputBuffer[index].RawBuffer;
Expand Down

0 comments on commit 37db8e0

Please sign in to comment.