Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 protected override void OnDetach()
 {
     BoneSkinSB = null;
     base.OnDetach();
 }
Esempio n. 3
0
 protected override bool OnAttach(IRenderTechnique technique)
 {
     BoneSkinSB = Collect(new StructuredBufferProxy(Matrix.SizeInBytes, false));
     return(true);
 }
Esempio n. 4
0
 protected override bool OnAttach(IRenderTechnique technique)
 {
     mtWeightsB = new StructuredBufferProxy(sizeof(float), false);
     return(true);
 }