Sitelet https://github.com/gpuweb/spirv-execution-env/issues/27#issue-442851730
Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

require clamping of index for OpVectorExtractDyanmic, OpVectorInsertDynamic, and bitfield insert and extract #27

Description

@dneto0

This eliminates a source of undefined behaviour.

Activity

  1. Kangz commented on May 10, 2019

    @Kangz
    Collaborator

    Maybe I misunderstand the title, shouldn't this be handled by implementations as a code transform instead? I'm not sure how easy it is to spec that the application has to do it.

  2. dneto0 commented on Jun 22, 2019

    @dneto0
    ContributorAuthor

    Yes, the implementation has to ensure that these instructions behave as if clamped. The shader coming into the implementation doesn't have to do anything special to get this behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions