gpu_get_texfilter_ext


描述

With this function you can check to see whether texture interpolation (linear interpolation) is enabled (returns true) or not (returns false) for a given shader sampler texture.


语法:

gpu_get_texfilter_ext(sampler_id);


参数:

参数 描述
sampler_id The sampler id from the shader.


返回:

Boolean(布尔值)


例如:

var s_tex = shader_get_sampler_index(shader_glass, "s_NoiseSampler");
if gpu_get_texfilter_ext(s_tex)
   {
   gpu_set_texfilter_ext(s_tex, false);
   }
else
   {
   gpu_set_texfilter_ext(s_tex, true);
   }

The above code checks to see if texture filtering is on or off for a specific sampler ID (stored in a local variable) and switches it accordingly.


上一页: GPU Functions
下一页: gpu_get_texrepeat
© Copyright YoYo Games Ltd. 2018 All Rights Reserved