Results 1 to 6 of 6

Thread: Multiple texture object sharing same texturedata?

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2011
    Posts
    14

    Multiple texture object sharing same texturedata?

    Hi,

    I wonder if there is some way to have multiple texture objects (with different wrapping for example) setup initially using the same texture data that has been pushed to the gpu with glTexImage2D?

    You could change the texture object while drawing of course but it would be nice to be able to setup multiple textureobjects initially (sharing the same texturedata) and just use them.

    Thanks
    /P

  2. #2
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    Posts
    6,674

    Re: Multiple texture object sharing same texturedata?

    The purpose of sampler objects is to be able to separate texture data from texture parameters. So you have one texture, but multiple ways to sample from it.

  3. #3
    Junior Member Newbie
    Join Date
    Dec 2011
    Posts
    14

    Re: Multiple texture object sharing same texturedata?

    Thank you! Now I just need to figure out if that extension is available in OpenGL ES 2.0.

    /P

  4. #4
    Junior Member Newbie
    Join Date
    Dec 2011
    Posts
    14

    Re: Multiple texture object sharing same texturedata?

    These are the extensions available on my HTC Desire HD Android phone. Doesn't look like the GL_ARB_sampler_objects is supported.

    GL_AMD_compressed_3DC_texture
    GL_AMD_compressed_ATC_texture
    GL_AMD_performance_monitor
    GL_AMD_program_binary_Z400
    GL_EXT_texture_filter_anisotropic
    GL_EXT_texture_format_BGRA8888
    GL_EXT_texture_type_2_10_10_10_REV
    GL_NV_fence
    GL_OES_compressed_ETC1_RGB8_texture
    GL_OES_depth_texture
    GL_OES_depth24
    GL_OES_EGL_image
    GL_OES_element_index_uint
    GL_OES_fbo_render_mipmap
    GL_OES_fragment_precision_high
    GL_OES_get_program_binary
    GL_OES_packed_depth_stencil
    GL_OES_rgb8_rgba8
    GL_OES_standard_derivatives
    GL_OES_texture_3D
    GL_OES_texture_float
    GL_OES_texture_half_float
    GL_OES_texture_half_float_linear
    GL_OES_texture_npot
    GL_OES_vertex_half_float
    GL_OES_vertex_type_10_10_10_2
    GL_QCOM_binning_control
    GL_QCOM_driver_control
    GL_QCOM_perfmon_global_mode
    GL_QCOM_extended_get
    GL_QCOM_extended_get2
    GL_QCOM_tiled_rendering
    GL_QCOM_writeonly_rendering
    GL_QCOM_memory_monitor

    /P

  5. #5
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    Posts
    6,674

    Re: Multiple texture object sharing same texturedata?

    This is an OpenGL forum, not an OpenGL ES forum. If you wanted an answer specific to GL ES, you should have at least mentioned it in your initial inquiry. Then, I could have told you, "Desktop GL has sampler objects, but GL ES has no equivalent, so there's nothing you can do except change your texture parameters as needed."

  6. #6
    Junior Member Newbie
    Join Date
    Dec 2011
    Posts
    14

    Re: Multiple texture object sharing same texturedata?

    Have I understood it correctly that there are a number of extensions available for lets say OpenGL ES 2.0 ->

    http://www.khronos.org/registry/gles/

    but it's up to the various vendors to choose which ones to support?

    EDIT : Ah, I missed that there is ES forum. Thanks for pointing it out! Sorry for cluttering this forum with ES specific stuff...

    Thanks
    P

Similar Threads

  1. Texture sharing from multiple threads
    By debinair in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-21-2016, 10:16 AM
  2. Buffer sharing on multiple queues
    By Chaosed0 in forum OpenCL
    Replies: 1
    Last Post: 07-27-2012, 07:44 AM
  3. Sharing texture objects between multiple contextes
    By Sergey Nenakhov in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 10-22-2011, 09:41 AM
  4. Share texture array among multiple texture object
    By theVIPER in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 01-30-2006, 08:51 AM
  5. Sharing Textures between multiple windows
    By BK in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 10-18-2000, 05:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean