Skip to content

[HLSL] sizeof(bool) should always be 4 #122932

Closed
@spall

Description

@spall

Currently HLSL functions which return or take a bool, do so with bool as an i1, but bool should always be an i32.
Related the i1 is extended to an i8 in the function body, which is an error.
https://hlsl.godbolt.org/z/Ksqsva9q3

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Support

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions