KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to use my IsGPUBasedAttribute for enum members like this: public enum EffectType { [IsGPUBased(true)] PixelShader, [IsGPUBased(false)] Blur } but the compiler doesn't let me to use: [AttributeUsage (AttributeTargets.Enum, AllowMultiple = false)] What is the right AttributeTarget value to limit the usage to enum members?
Tags (comma-separated)
Save Edits
Cancel