Replies: 1 comment 3 replies
-
If I use your struct as a If you want a quick way to look at the full json locally, you can also dump it on the command line by appending |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have faced some problems with retrieving reflection from a slang file.
For example, I want to mark some field in an Input Assembly structure as compressed. How I understood I should create a custom attribute and use it, something like this:
But I tried many options and I couldn't get that metadata during iterating over reflection. Reflection gives me IA2VS_Mesh data, gives me each field in the structure, but when I check the "COLOR" field I can't fetch "CompresedFormat" attribute. Can you help me?
there is my code snippet for reflection:
//-- How to get attributes in the
createInputAssembly
for each field? I have tried to usefield->getVariable()
,field->getType()
,field->getVariable()->getType()
,field->getTypeLayout()
, butgetUserAttributeCount()
always returned 0.What I do wrong? Or may be there is a simpler way to do it?
Upd:
layout->toJson()
returns the following data for the Color field:Is it ok?
Beta Was this translation helpful? Give feedback.
All reactions