public static samplerValue ToSamplerValue(this Texture texture) { return new samplerValue( texture.Target, texture.Id, texture.ActiveTextureIndex); }