lib/vulkan/conversions.rb
# Performs similarly to #const_to_symbol, but returns an array of symbols
# for a set of matching flag names, rather than for a single value.
Performs similarly to #const_to_symbol, but returns an array of symbols
for a set of matching flag names, rather than for a single value.
Performs similarly to #const_to_symbol but returns an array of symbols for a set of matching flag names rather than for a single value .
def flags_to_symbols(val, rx)
      [].tap do |ary|
        Vulkan.constants.each do |konst|
          if konst.to_s[rx]
            flag_value = Vulkan.const_get(konst)
            ary << $1.downcase.to_sym if val & flag_value > 0
          end
        end
      end
    end
def flags_to_symbols ( val , rx ) [ ] . tap do | ary | Vulkan . constants . each do | konst | if konst . to_s [ rx ] flag_value = Vulkan . const_get ( konst ) ary << $1 . downcase . to_sym if val & flag_value > 0 end end end end
Performs similarly to #const_to_symbol, but returns an array of symbols
for a set of matching flag names, rather than for a single value.
Performs similarly to #const_to_symbol but returns an array of symbols for a set of matching flag names rather than for a single value .
val
<not_specific>
rx
<not_specific>