Skip to content
  • Home Home Home, current page.
  • Moments Moments Moments, current page.

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
warrenm's profile
Warren Moore
Warren Moore
Warren Moore
@warrenm

Tweets

Warren Moore

@warrenm

Software engineer specializing in mobile graphics and augmented reality. Author of “Metal by Example”

San Francisco, CA
metalbyexample.com
Joined April 2008

Tweets

  • © 2018 Twitter
  • About
  • Help Center
  • Terms
  • Privacy policy
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @

Promote this Tweet

Block

  • Tweet with a location

    You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.

    Preview

    Why you're seeing this ad

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Welcome home!

    This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.

    Tweets not working for you?

    Hover over the profile pic and click the Following button to unfollow any account.

    Say a lot with a little

    When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.

    Spread the word

    The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.

    Join the conversation

    Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.

    Learn the latest

    Get instant insight into what people are talking about now.

    Get more of what you love

    Follow more accounts to get instant updates about topics you care about.

    Find what's happening

    See the latest conversations about any topic instantly.

    Never miss a Moment

    Catch up instantly on the best stories happening as they unfold.

    1. Warren Moore‏ @warrenm May 15
      Replying to @jippoew

      Cool! So the chief thing to understand is that you can encode as much work as you want into a single command buffer; dependencies (between kernels) will be resolved automatically.

      1 reply 0 retweets 0 likes
    2. Warren Moore‏ @warrenm May 15
      Replying to @warrenm @jippoew

      The practical upshot of this is that you can try to encode kernels in-place, while providing a backup copy allocator to minimize allocations, but chaining from the output of one kernel to the input of another—even within one command buffer—should “just work.”

      1 reply 0 retweets 0 likes
    3. Warren Moore‏ @warrenm May 15
      Replying to @warrenm @jippoew

      All of this goes out the window if you’re using MTLHeap, where accesses are noted less granularly, but I suspect that for now you’re not using heaps?

      2 replies 0 retweets 0 likes
    4. Jaap‏ @jippoew May 15
      Replying to @warrenm

      Nope, not using heaps. The part where I'm kind of stranded is the source and destination textures when I encode the filters, how to make sure these are the right size and set up in the correct way in general.

      2 replies 0 retweets 0 likes
    5. Jaap‏ @jippoew May 15
      Replying to @jippoew @warrenm

      to explain the situation. Im getting some source image at a 320 x 480 resolution and apply the sobel filter for now. But the result in my mtk view is a tiny rectangle at the top right because of this resolution and so I want to resize the texture before applying the sober filter.

      1 reply 0 retweets 0 likes
    6. Warren Moore‏ @warrenm May 15
      Replying to @jippoew

      Oh, you want to upsample from the source first? In that case, MPSImageScale up to the desired size (yes, you have to compute the dest size manually); at worst use Lanczos (you probably don’t need it); then feed that to your Sobel.

      1 reply 0 retweets 0 likes
    7. Warren Moore‏ @warrenm May 15
      Replying to @warrenm @jippoew

      Sorry if this is obtuse; I really should write a new article about all of this 🙃

      1 reply 0 retweets 0 likes
    8. Jaap‏ @jippoew May 15
      Replying to @warrenm

      Ah I didn't even know sobel is only applied to 1:1 aspect images, I'm using it on something 320 x 240. But yes that's exactly what I'm trying to do. So the thing to do is have one intermediate texture of the same size as my drawable?

      2 replies 0 retweets 0 likes
    9. Warren Moore‏ @warrenm May 15
      Replying to @jippoew

      Sorry, I meant Sobel’s input dimensions are the same as the output, not to imply the aspect ratio has to be 1:1. But yes, it sounds like you want to allocate an intermediate texture that is the size expected as the output of your upsampling kernel.

      1 reply 0 retweets 0 likes
    10. Jaap‏ @jippoew May 15
      Replying to @warrenm

      Thanks a lot! I'm gonna see if I can get it to work!

      1 reply 0 retweets 0 likes
      Warren Moore‏ @warrenm May 15
      Replying to @jippoew

      🤘🏻Let me know how it goes!

      11:28 AM - 15 May 2018 from Hanoi, Vietnam
      3 replies 0 retweets 0 likes
        1. Jaap‏ @jippoew May 15
          Replying to @warrenm

          Seems the data is passed through ok as the result is the same picture with the sobel filter applied. The resize filter however isn't doing any resizing. Seems like it can't find my MPSScaleTransform

          0 replies 0 retweets 0 likes
          Thanks. Twitter will use this to make your timeline better. Undo
          Undo
        1. New conversation
        2. Jaap‏ @jippoew May 16
          Replying to @warrenm

          Hm still can't get the resizing to work. Are there any examples of attaching the ScaleTransform to the filter you know of? I couldn't find any, even in the documentation.

          1 reply 0 retweets 0 likes
        3. Warren Moore‏ @warrenm May 16
          Replying to @jippoew

          Hmm, let me try to whip up an example.

          1 reply 0 retweets 1 like
        4. Jaap‏ @jippoew May 16
          Replying to @warrenm

          That would be awesome!

          1 reply 0 retweets 0 likes
        5. Warren Moore‏ @warrenm May 16
          Replying to @jippoew

          Seems to be working as expected here, though of course Swift makes working with pointers miserable. Hope this helps:https://www.dropbox.com/s/f6k5t9b5dbut6tb/MPSImageScaleSample.zip?dl=0 …

          1 reply 0 retweets 1 like
        6. Jaap‏ @jippoew May 16
          Replying to @warrenm

          Great! It works. I was also able to chain other filters in your example. Now I'm gonna try to get it working in my own project.

          0 replies 0 retweets 1 like
        7. End of conversation
        1. New conversation
        2. Jaap‏ @jippoew May 18
          Replying to @warrenm

          I got it working! Thanks for the help!

          1 reply 0 retweets 0 likes
        3. Warren Moore‏ @warrenm May 18
          Replying to @jippoew

          Awesome! Happy to help 🙂

          0 replies 0 retweets 0 likes
        4. End of conversation

      Loading seems to be taking a while.

      Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

        Promoted Tweet

        false

        • © 2018 Twitter
        • About
        • Help Center
        • Terms
        • Privacy policy
        • Cookies
        • Ads info