protected override bool OnAttach(IRenderTechnique technique) { mtWeightsB = new StructuredBufferProxy(sizeof(float), false); mtDeltasB = new ImmutableBufferProxy(sizeof(float) * 3, BindFlags.ShaderResource, ResourceOptionFlags.BufferStructured); mtOffsetsB = new ImmutableBufferProxy(sizeof(int), BindFlags.ShaderResource, ResourceOptionFlags.BufferStructured); return(true); }
protected override void OnDetach() { BoneSkinSB = null; base.OnDetach(); }
protected override bool OnAttach(IRenderTechnique technique) { BoneSkinSB = Collect(new StructuredBufferProxy(Matrix.SizeInBytes, false)); return(true); }
protected override bool OnAttach(IRenderTechnique technique) { mtWeightsB = new StructuredBufferProxy(sizeof(float), false); return(true); }