A Visual Studio extension that provides enhanced support for editing High Level Shading Language (HLSL) files
561
stars
97
forks
source link
Live Error throws false positive HLSL0039 on converting inhereted struct to base type #190
Open
hunterbridges opened 4 years ago
Repro: Declare a struct type
Foo
, then another struct typeBar
which inherits from it. Create an instance ofBar
and attempt to cast it toFoo
.Expected:
thingy
is successfully casted toFoo
and throws no error Actual: Live Error throwsCannot convert type 'Bar' to 'Foo'.Shader Tools(HLSL0039)