A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/WebGLSampler below:

WebGLSampler - Web APIs | MDN

MDN Web Docs
  1. References
  2. Web APIs
  3. WebGLSampler

Filter sidebar

In this article
  1. WebGL: 2D and 3D graphics for the web
  2. WebGLSampler
  3. Inheritance
    1. WebGLObject Experimental
  4. Related pages for WebGL
    1. ANGLE_instanced_arrays
    2. EXT_blend_minmax
    3. EXT_color_buffer_half_float
    4. EXT_disjoint_timer_query
    5. EXT_frag_depth
    6. EXT_sRGB
    7. EXT_shader_texture_lod
    8. EXT_texture_filter_anisotropic
    9. OES_draw_buffers_indexed
    10. OES_element_index_uint
    11. OES_standard_derivatives
    12. OES_texture_float
    13. OES_texture_float_linear
    14. OES_texture_half_float
    15. OES_texture_half_float_linear
    16. OES_vertex_array_object
    17. WEBGL_color_buffer_float
    18. WEBGL_compressed_texture_etc1
    19. WEBGL_compressed_texture_pvrtc
    20. WEBGL_compressed_texture_s3tc
    21. WEBGL_compressed_texture_s3tc_srgb
    22. WEBGL_debug_renderer_info
    23. WEBGL_debug_shaders
    24. WEBGL_depth_texture
    25. WEBGL_draw_buffers
    26. WEBGL_lose_context
    27. WebGL2RenderingContext
    28. WebGLActiveInfo
    29. WebGLBuffer
    30. WebGLContextEvent
    31. WebGLFramebuffer
    32. WebGLObject Experimental
    33. WebGLProgram
    34. WebGLQuery
    35. WebGLRenderbuffer
    36. WebGLRenderingContext
    37. WebGLShader
    38. WebGLShaderPrecisionFormat
    39. WebGLSync
    40. WebGLTexture
    41. WebGLTransformFeedback
    42. WebGLUniformLocation
    43. WebGLVertexArrayObject
  5. Guides
    1. WebGL constants
    2. WebGL types
    3. WebGL model view projection
    4. WebGL best practices
    5. WebGL by example
    6. A basic 2D WebGL animation example
    7. Compressed texture formats
    8. Data in WebGL
    9. Matrix math for the web
    10. Using WebGL extensions
  6. Tutorial
    1. WebGL tutorial
    2. Getting started with WebGL
    3. Adding 2D content to a WebGL context
    4. Using shaders to apply color in WebGL
    5. Animating objects with WebGL
    6. Creating 3D objects using WebGL
    7. Using textures in WebGL
    8. Lighting in WebGL
    9. Animating textures in WebGL
In this article WebGLSampler

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2021.

Note: This feature is available in Web Workers.

The WebGLSampler interface is part of the WebGL 2 API and stores sampling parameters for WebGLTexture access inside of a shader.

WebGLObject WebGLSampler

When working with WebGLSampler objects, the following methods of the WebGL2RenderingContext are useful:

Examples Creating a WebGLSampler object

in this example, gl must be a WebGL2RenderingContext. WebGLSampler objects are not available in WebGL 1.

js

const sampler = gl.createSampler();
Specifications Specification WebGL 2.0 Specification
# 3.3
Browser compatibility Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Sep 28, 2024 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4