Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

WrapMode for CommandBuffer.GetTemporaryRT?

Discussion in 'General Graphics' started by CDF, Mar 27, 2018.

  1. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,281
    Can't seem to figure out how to set the wrap mode for a temporary render texture from a command buffer.
    No overloaded method accepts one and neither does a RenderTextureDescriptor. I would like to set the wrap mode to "Repeat"

    Is this not possible with Command Buffers? Seems very odd
     
  2. JackieDevelops

    JackieDevelops

    Joined:
    May 11, 2017
    Posts:
    27
    Off the top of my head, an idea might be to use a sampler that conforms to the wrap mode you want to use. So declare a sampler with the desired wrap mode in the shader, and use that to sample the texture.

    Although, I dont know your use-case, so this may not be of help.
     
  3. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,281
  4. ViniciusGraciano

    ViniciusGraciano

    Joined:
    May 19, 2013
    Posts:
    13
    Bump. I want this feature as well.