Skip to content

ImageFormat::Rgb10a2ui uses inconsistent casing. #192

Open

Description

@XAMPPRocky

Notice how ImageFormat::Rgb10A2 and ImageFormat::Rgb10a2ui have a differently cased A, in Rust the casing starts at the beginning of each word. The former is correct and Rgb10a2ui should be Rgb10A2ui .

Activity

  1. changed the title [-]ImageFormat::Rgb10a2ui use inconsistent casing.[/-] [+]ImageFormat::Rgb10a2ui uses inconsistent casing.[/+] on Apr 22, 2021
  2. MarijnS95 commented on Apr 22, 2021

    @MarijnS95
    Collaborator

    By the way, shouldn't the U in Ui be capitalized as well?

  3. XAMPPRocky commented on Apr 22, 2021

    @XAMPPRocky
    ContributorAuthor

    By the way, shouldn't the U in Ui be capitalized as well?

    Good question, I don't think so based on how these formats are cased in GLSL, you can see it's specified as rgb10_a2 and rgb10_a2ui, which to me would imply that you're supposed to treat a2 and a2ui as whole words.

    https://www.khronos.org/opengl/wiki/Image_Load_Store

  4. MarijnS95 commented on Apr 22, 2021

    @MarijnS95
    Collaborator

    Hmm, complicated. @XAMPPRocky are we looking at this from a Rust naming conventions or GLSL/SPIR-V naming perspective? That link implies the entire thing to be lowercase while the autogenerator here seems to take the grammar name verbatim.

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