Thanks to visit codestin.com
Credit goes to github.com

Skip to content

screenSize view uniform should be an integer #921

@jespertheend

Description

@jespertheend

Currently it's a vec4<f32> but since the screen size can't half pixels, an integer type would be more suitable here.

Although the z and w components of the vector are unused right now. We might want to provide something useful here.
Unity stores 1.0 + 1.0/w here for instance. If we decide to do this, an integer type wouldn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: CasualSimple changes that shouldn't take too much time when you're already familiar with the codebasetopic: WebGPU RendererRelated to the WebGpuRenderer

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions