public override SubscriberBase GetSubscriberInstance(EffectVariable variable, RenderContext context, MMEEffectManager effectManager, int semanticIndex) { BasicMaterialConstantBufferManager manager = new BasicMaterialConstantBufferManager(); manager.Initialize(context.DeviceManager.Device, (EffectConstantBuffer)variable, BasicMaterialConstantBufferInputLayout.SizeInBytes, new BasicMaterialConstantBufferInputLayout()); return(new BasicMaterialConstantSubscriber(manager)); }
private BasicMaterialConstantSubscriber(BasicMaterialConstantBufferManager manager) { this.Manager = manager; }