Skip to content

Missing static factory methods like var foo = byte4(x,y,z,w) #3

@Neovariance

Description

@Neovariance

This is a silly issue but I'm used to using unity mathematics convention of doing
float4 foo = float4(bar)
instead of
float4 foo = new float4(bar)
and when I massively search and replace float4 by byte4, it doesn't compile and I have to use new byte4()

eg
public static float4 float4(float x, float y, float z, float w) { return new float4(x, y, z, w); }

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions