Example #1
0
 public void Accept(ShaderGeneratorContext context)
 {
     valueBuffer ??= GraphicsResource.CreateBuffer(context.GraphicsDevice, Value, ResourceFlags.None, HeapType.Upload);
     context.ConstantBufferViews.Add(valueBuffer.DefaultConstantBufferView);
 }