public ComputeShaderSampler_NativeInterop(ref ComputeShaderSampler sampler)
 {
     registerIndex      = sampler.registerIndex;
     filter             = sampler.filter;
     addressU           = sampler.addressU;
     addressV           = sampler.addressV;
     addressW           = sampler.addressW;
     anisotropy         = sampler.anisotropy;
     comparisonFunction = sampler.comparisonFunction;
 }
 public ShaderEffectSampler_NativeInterop(ref ShaderEffectSampler sampler)
 {
     registerIndex      = sampler.registerIndex;
     filter             = sampler.filter;
     addressU           = sampler.addressU;
     addressV           = sampler.addressV;
     addressW           = sampler.addressW;
     anisotropy         = sampler.anisotropy;
     comparisonFunction = sampler.comparisonFunction;
     usage = sampler.usage;
 }