webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Functions | Variables
gen_texture_format_table Namespace Reference

Functions

def gl_format_channels (internal_format)
 
def get_internal_format_initializer (internal_format, angle_format)
 
def get_swizzle_format_id (internal_format, angle_format)
 
def get_blit_srv_format (angle_format)
 
def json_to_table_data (internal_format, format_name, prefix, json)
 
def parse_json_angle_format_case (format_name, angle_format, json_data)
 
def parse_json_into_switch_angle_format_string (json_map, json_data)
 
def reject_duplicate_keys (pairs)
 

Variables

string template_texture_format_table_autogen_cpp
 
string format_entry_template
 
string split_format_entry_template
 
 json_map = angle_format.load_with_override(os.path.abspath('texture_format_map.json'))
 
 texture_format_data = texture_format_json_file.read()
 
 json_data = json.loads(texture_format_data, object_pairs_hook=angle_format.reject_duplicate_keys)
 
def angle_format_cases = parse_json_into_switch_angle_format_string(json_map, json_data)
 
string output_cpp
 

Function Documentation

◆ get_blit_srv_format()

def gen_texture_format_table.get_blit_srv_format (   angle_format)

◆ get_internal_format_initializer()

def gen_texture_format_table.get_internal_format_initializer (   internal_format,
  angle_format 
)

◆ get_swizzle_format_id()

def gen_texture_format_table.get_swizzle_format_id (   internal_format,
  angle_format 
)

◆ gl_format_channels()

def gen_texture_format_table.gl_format_channels (   internal_format)

◆ json_to_table_data()

def gen_texture_format_table.json_to_table_data (   internal_format,
  format_name,
  prefix,
  json 
)

◆ parse_json_angle_format_case()

def gen_texture_format_table.parse_json_angle_format_case (   format_name,
  angle_format,
  json_data 
)

◆ parse_json_into_switch_angle_format_string()

def gen_texture_format_table.parse_json_into_switch_angle_format_string (   json_map,
  json_data 
)

◆ reject_duplicate_keys()

def gen_texture_format_table.reject_duplicate_keys (   pairs)

Variable Documentation

◆ angle_format_cases

def gen_texture_format_table.angle_format_cases = parse_json_into_switch_angle_format_string(json_map, json_data)

◆ format_entry_template

string gen_texture_format_table.format_entry_template
Initial value:
1 = """{space}{{
2 {space} static const Format info({internalFormat},
3 {space} angle::Format::ID::{formatName},
4 {space} {texFormat},
5 {space} {srvFormat},
6 {space} {rtvFormat},
7 {space} {dsvFormat},
8 {space} {blitSRVFormat},
9 {space} {swizzleFormat},
10 {space} {initializer},
11 {space} deviceCaps);
12 {space} return info;
13 {space}}}
14 """

◆ json_data

gen_texture_format_table.json_data = json.loads(texture_format_data, object_pairs_hook=angle_format.reject_duplicate_keys)

◆ json_map

gen_texture_format_table.json_map = angle_format.load_with_override(os.path.abspath('texture_format_map.json'))

◆ output_cpp

string gen_texture_format_table.output_cpp
Initial value:
1 = template_texture_format_table_autogen_cpp.format(
2  copyright_year=date.today().year,
3  angle_format_info_cases=angle_format_cases)

◆ split_format_entry_template

string gen_texture_format_table.split_format_entry_template
Initial value:
1 = """{space} {condition}
2 {space} {{
3 {space} static const Format info({internalFormat},
4 {space} angle::Format::ID::{formatName},
5 {space} {texFormat},
6 {space} {srvFormat},
7 {space} {rtvFormat},
8 {space} {dsvFormat},
9 {space} {blitSRVFormat},
10 {space} {swizzleFormat},
11 {space} {initializer},
12 {space} deviceCaps);
13 {space} return info;
14 {space} }}
15 """

◆ template_texture_format_table_autogen_cpp

string gen_texture_format_table.template_texture_format_table_autogen_cpp

◆ texture_format_data

gen_texture_format_table.texture_format_data = texture_format_json_file.read()