コード例 #1
0
 public virtual void OnAttach(Effect effect)
 {
     currentSimulationStateVar = effect.GetVariableByName("CurrentSimulationState").AsUnorderedAccessView();
     newSimulationStateVar     = effect.GetVariableByName("NewSimulationState").AsUnorderedAccessView();
     simulationStateVar        = effect.GetVariableByName("SimulationState").AsShaderResource();
     particleSizeVar           = effect.GetVariableByName("ParticleSize").AsVector();
     randomVectorVar           = effect.GetVariableByName("RandomVector").AsVector();
     randomSeedVar             = effect.GetVariableByName("RandomSeed").AsScalar();
     numTextureColumnVar       = effect.GetVariableByName("NumTexCol").AsScalar();
     numTextureRowVar          = effect.GetVariableByName("NumTexRow").AsScalar();
     animateSpriteByEnergyVar  = effect.GetVariableByName("AnimateByEnergyLevel").AsScalar();
 }
コード例 #2
0
 public static void ApplyUAVWrite(EffectUnorderedAccessViewVariable variable, LayerSettings settings)
 {
     variable.Set(settings.BackBuffer.UnorderedView);
 }