MCPcopy Create free account
hub / github.com/carbonengine/trinity / Permutation

Class Permutation

shadercompiler/python/shadercompiler/effectinfo.py:498–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496
497
498class Permutation(object):
499 STATIC = 0
500 DYNAMIC = 1
501
502 def __init__(self, stream, string_table, version):
503 self.name = string_table.get_string(stream.read_uint32())
504 self.default_index = stream.read_uint8()
505 self.description = string_table.get_string(stream.read_uint32())
506 if version > 5:
507 self.type = stream.read_uint8()
508 else:
509 self.type = Permutation.STATIC
510 count = stream.read_uint8()
511 self.options = []
512 for i in range(count):
513 self.options.append(string_table.get_string(stream.read_uint32()))
514
515
516class ShaderInfo(object):

Callers 1

_loadMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected