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. Jaap‏ @jippoew May 15
      Replying to @warrenm

      It still works after some tweaking ;) Always looking forward to new material! Metal has really interested me the last few years. I'm using Swift btw!

      1 reply 0 retweets 0 likes
    2. 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
    3. 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
    4. 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
    5. Andrey Volodin‏ @s1ddok Sep 30
      Replying to @warrenm @jippoew

      Sorry for reviving the ancient thread, but I’m looking for a way to chain MPS kernels on heap sub-allocated resources. Any hints?

      1 reply 0 retweets 0 likes
    6. Warren Moore‏ @warrenm Sep 30
      Replying to @s1ddok @jippoew

      The key thing to remember is that you’re responsible for tracking dependencies between resources that might alias. I seem to recall another tweet from you that mentioned fences; are you using them? Have you consulted this sample? https://developer.apple.com/documentation/metal/resource_objects/image_filter_graph_with_heaps_and_fences …

      1 reply 0 retweets 0 likes
    7. Andrey Volodin‏ @s1ddok Sep 30
      Replying to @warrenm @jippoew

      Yeah, the problem is that MPS kernels don’t provide you with MPSComputeComandEncoder, but instead encode themselves into command buffer. That’s why I’m lost at how to ensure chaining order on heap sub-allocated resources. Is there a way to feed MPS a fence to use?

      1 reply 0 retweets 0 likes
    8. Warren Moore‏ @warrenm Sep 30
      Replying to @s1ddok @jippoew

      Sorry, that wasn’t the sample I intended. I think what you want are MTLEvents, which are command buffer-level objects that allow more flexible specification of sync boundaries for heap-allocated and non-tracked resources: https://developer.apple.com/documentation/metal/advanced_command_setup/image_filter_graph_with_heaps_and_events …

      1 reply 0 retweets 0 likes
    9. Andrey Volodin‏ @s1ddok Sep 30
      Replying to @warrenm @jippoew

      Oh I see, so I can encode MTLEvents in between MPS kernels so that they are chained in a serial order. Do you think it will introduce comparable overhead as device-memory resources with automatic hazard tracking?

      2 replies 0 retweets 0 likes
    10. Andrey Volodin‏ @s1ddok Sep 30
      Replying to @s1ddok @warrenm @jippoew

      Could you please also clarify if the time of calling `makeAliasable()` actually matters? In the docs there is a mention that "if you use heap as a stack, no fragmentation occurs". But I never saw any example of "heap as a stack usage", what does it mean?

      2 replies 0 retweets 0 likes
      Warren Moore‏ @warrenm Sep 30
      Replying to @s1ddok

      I don’t know the particulars of timing around makeAliasable. What’s your use case for not calling it at the time you create the resource?

      11:59 PM - 30 Sep 2018
      1 reply 0 retweets 0 likes
        1. New conversation
        2. Andrey Volodin‏ @s1ddok Oct 1
          Replying to @warrenm

          Well at least from what I believe, I use it in the following way: 1. Create a dynamic texture from heap 2. Encode commands using it 3. Call makeAliasable to “free” memory 4. Go to 1 with other textures

          1 reply 0 retweets 0 likes
        3. Andrey Volodin‏ @s1ddok Oct 1
          Replying to @s1ddok @warrenm

          I expect the behaviour to be “don’t touch the underlying memory until I say you can reuse it”. Apple samples defer calling makeAliasable as well. However there is no strong statement about its real behavior anywhere

          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