Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 private BasicMaterialConstantSubscriber(BasicMaterialConstantBufferManager manager)
 {
     this.Manager = manager;
 }