Skip to content

Instantly share code, notes, and snippets.

@Gankra
Created March 14, 2019 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gankra/07be68dd52694286136004bb64adfd4b to your computer and use it in GitHub Desktop.
Save Gankra/07be68dd52694286136004bb64adfd4b to your computer and use it in GitHub Desktop.
(
content_origin: (0, 0),
framebuffer_rect: ((0, 0), (2560, 1622)),
background_color: None,
layer: 0,
passes: [
(
kind: OffScreen(
alpha: (
screen_size: (2560, 1622),
format: R8,
max_dynamic_size: (364, 337),
targets: [
(
clip_batcher: (
primary_clips: (
rectangles: [
(
render_task_address: (2),
clip_transform_id: (1),
prim_transform_id: (0),
clip_data_address: (
u: 800,
v: 1,
),
resource_address: (
u: 65535,
v: 65535,
),
local_pos: (0, 0),
tile_rect: ((0, 0), (0, 0)),
sub_rect: ((0, 0), (113, 97)),
snap_offsets: (
top_left: (0, 0),
bottom_right: (0, 0),
),
),// [0]
],
images: {
},
box_shadows: {
},
),
secondary_clips: (
rectangles: [
(
render_task_address: (2),
clip_transform_id: (2),
prim_transform_id: (0),
clip_data_address: (
u: 800,
v: 1,
),
resource_address: (
u: 65535,
v: 65535,
),
local_pos: (0, 0),
tile_rect: ((0, 0), (0, 0)),
sub_rect: ((0, 0), (113, 97)),
snap_offsets: (
top_left: (0, 0),
bottom_right: (0, 0),
),
),// [0]
],
images: {
},
box_shadows: {
},
),
gpu_supports_fast_clears: false,
),
vertical_blurs: [
],
horizontal_blurs: [
],
scalings: [
],
zero_clears: [
],
one_clears: [
(
index: 0,
frame_id: (2),
),// [0]
(
index: 2,
frame_id: (2),
),// [1]
],
used_rect: ((0, 0), (477, 337)),
),// [0]
],
saved_index: None,
alloc_tracker: (
bins: ([
], [
], [
(
slice: (0),
rect: ((0, 337), (2048, 1711)),
),// [0]
(
slice: (0),
rect: ((477, 0), (1571, 337)),
),// [1]
(
slice: (0),
rect: ((364, 97), (113, 240)),
),// [2]
]),
),
gpu_supports_fast_clears: false,
),
color: (
screen_size: (2560, 1622),
format: BGRA8,
max_dynamic_size: (364, 337),
targets: [
(
alpha_batch_containers: [
(
opaque_batches: [
],
alpha_batches: [
(
key: (
kind: Brush(Solid),
blend_mode: PremultipliedAlpha,
textures: (
colors: (Invalid, Invalid, Invalid),
),
),
instances: [
(
data: (0, 32767, 17760256, 0),
),// [0]
],
),// [0]
],
task_scissor_rect: Some(((0, 0), (364, 337))),
regions: [
],
tile_blits: [
],
),// [0]
],
vertical_blurs: [
],
horizontal_blurs: [
],
scalings: [
],
blits: [
],
outputs: [
],
alpha_tasks: [
(
index: 1,
frame_id: (2),
),// [0]
],
screen_size: (2560, 1622),
used_rect: ((0, 0), (364, 337)),
),// [0]
],
saved_index: None,
alloc_tracker: (
bins: ([
], [
], [
(
slice: (0),
rect: ((364, 0), (1684, 337)),
),// [0]
(
slice: (0),
rect: ((0, 337), (2048, 1711)),
),// [1]
]),
),
gpu_supports_fast_clears: false,
),
texture_cache: {
},
),
tasks: [
(
index: 0,
frame_id: (2),
),// [0]
(
index: 1,
frame_id: (2),
),// [1]
(
index: 2,
frame_id: (2),
),// [2]
],
),// [0]
(
kind: MainFramebuffer((
alpha_batch_containers: [
(
opaque_batches: [
(
key: (
kind: Brush(Solid),
blend_mode: None,
textures: (
colors: (Invalid, Invalid, Invalid),
),
),
instances: [
(
data: (1, 32767, 17760256, 0),
),// [0]
],
),// [0]
],
alpha_batches: [
],
task_scissor_rect: None,
regions: [
],
tile_blits: [
],
),// [0]
(
opaque_batches: [
(
key: (
kind: Brush(Solid),
blend_mode: None,
textures: (
colors: (Invalid, Invalid, Invalid),
),
),
instances: [
(
data: (4, 32767, 16777220, 0),
),// [0]
(
data: (2, 32767, 17760256, 0),
),// [1]
],
),// [0]
],
alpha_batches: [
(
key: (
kind: Brush(Blend),
blend_mode: PremultipliedAlpha,
textures: (
colors: (PrevPassColor, PrevPassAlpha, Invalid),
),
),
instances: [
(
data: (3, 0, 536936447, 0),
),// [0]
],
),// [0]
(
key: (
kind: Brush(Solid),
blend_mode: PremultipliedAlpha,
textures: (
colors: (Invalid, Invalid, Invalid),
),
),
instances: [
(
data: (4, 32767, 16973824, 0),
),// [0]
(
data: (4, 32767, 16908289, 0),
),// [1]
(
data: (4, 32767, 17170434, 0),
),// [2]
(
data: (4, 32767, 16842755, 0),
),// [3]
(
data: (4, 32767, 17039365, 0),
),// [4]
(
data: (4, 2, 17367046, 0),
),// [5]
(
data: (4, 32767, 17301511, 0),
),// [6]
(
data: (4, 32767, 17563656, 0),
),// [7]
],
),// [1]
],
task_scissor_rect: None,
regions: [
((0, 0), (2560, 1536)),// [0]
],
tile_blits: [
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1944),
epoch: (2),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 36,
),
src_offset: (0, 0),
dest_offset: (0, 0),
size: (1024, 256),
),// [0]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1943),
epoch: (2),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 37,
),
src_offset: (1024, 0),
dest_offset: (0, 0),
size: (1024, 256),
),// [1]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1940),
epoch: (2),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 38,
),
src_offset: (2048, 0),
dest_offset: (0, 0),
size: (512, 256),
),// [2]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (2024),
epoch: (2),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 39,
),
src_offset: (0, 256),
dest_offset: (0, 0),
size: (1024, 256),
),// [3]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (2023),
epoch: (2),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 40,
),
src_offset: (1024, 256),
dest_offset: (0, 0),
size: (1024, 256),
),// [4]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1965),
epoch: (2),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 41,
),
src_offset: (2048, 256),
dest_offset: (0, 0),
size: (512, 256),
),// [5]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1964),
epoch: (2),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 42,
),
src_offset: (0, 512),
dest_offset: (0, 0),
size: (1024, 256),
),// [6]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1963),
epoch: (2),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 43,
),
src_offset: (1024, 512),
dest_offset: (0, 0),
size: (1024, 256),
),// [7]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1962),
epoch: (2),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 44,
),
src_offset: (2048, 512),
dest_offset: (0, 0),
size: (512, 256),
),// [8]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1957),
epoch: (1),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 45,
),
src_offset: (0, 768),
dest_offset: (0, 0),
size: (1024, 256),
),// [9]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1952),
epoch: (1),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 46,
),
src_offset: (1024, 768),
dest_offset: (0, 0),
size: (1024, 256),
),// [10]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1951),
epoch: (1),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 47,
),
src_offset: (2048, 768),
dest_offset: (0, 0),
size: (512, 256),
),// [11]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1946),
epoch: (1),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 48,
),
src_offset: (0, 1024),
dest_offset: (0, 0),
size: (1024, 256),
),// [12]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1928),
epoch: (1),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 49,
),
src_offset: (1024, 1024),
dest_offset: (0, 0),
size: (1024, 256),
),// [13]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1927),
epoch: (1),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 50,
),
src_offset: (2048, 1024),
dest_offset: (0, 0),
size: (512, 256),
),// [14]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1923),
epoch: (1),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 51,
),
src_offset: (0, 1280),
dest_offset: (0, 0),
size: (1024, 256),
),// [15]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1922),
epoch: (1),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 52,
),
src_offset: (1024, 1280),
dest_offset: (0, 0),
size: (1024, 256),
),// [16]
(
target: (
texture_id: TextureCache((1)),
uv_rect_handle: (
location: Some((
block_index: (1921),
epoch: (1),
)),
),
uv_rect: ((0, 0), (1024, 256)),
texture_layer: 53,
),
src_offset: (2048, 1280),
dest_offset: (0, 0),
size: (512, 256),
),// [17]
],
),// [1]
(
opaque_batches: [
],
alpha_batches: [
],
task_scissor_rect: None,
regions: [
],
tile_blits: [
],
),// [2]
],
vertical_blurs: [
],
horizontal_blurs: [
],
scalings: [
],
blits: [
],
outputs: [
],
alpha_tasks: [
(
index: 3,
frame_id: (2),
),// [0]
],
screen_size: (2560, 1622),
used_rect: ((0, 0), (0, 0)),
)),
tasks: [
(
index: 3,
frame_id: (2),
),// [0]
],
),// [1]
],
transform_palette: [
(
transform: (1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1),
inv_transform: (1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1),
),// [0]
(
transform: (1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1),
inv_transform: (1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1),
),// [1]
(
transform: (1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1),
inv_transform: (1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1),
),// [2]
(
transform: (0.9848077297210693, 0.1736481785774231, 0, 0, -0.1736481785774231, 0.9848077297210693, 0, 0, 0, 0, 1, 0, 44.04632568359375, -9.904251098632813, 0, 1),
inv_transform: (0.9848078489303589, -0.1736481934785843, 0, 0, 0.1736481934785843, 0.9848078489303589, 0, 0, 0, 0, 1, 0, -41.657310485839844, 17.4023494720459, 0, 1),
),// [3]
(
transform: (0.9848077297210693, 0.1736481785774231, 0, 0, -0.1736481785774231, 0.9848077297210693, 0, 0, 0, 0, 1, 0, 44.04632568359375, 579.4290771484375, 0, 1),
inv_transform: (0.9848078489303589, -0.1736481934785843, 0, 0, 0.1736481934785843, 0.9848078489303589, 0, 0, 0, 0, 1, 0, -143.99398803710938, -562.9777221679688, 0, 1),
),// [4]
],
render_tasks: (
tasks: [
(
location: Dynamic(Some(((0, 0), (0))), (364, 337)),
children: [
],
kind: CacheMask((
actual_rect: ((0, 0), (364, 337)),
root_spatial_node_index: (0),
clip_node_range: (
first: 0,
count: 2,
),
snap_offsets: (
top_left: (0, 0),
bottom_right: (0, 0),
),
device_pixel_scale: 1,
)),
clear_mode: One,
saved_index: None,
),// [0]
(
location: Dynamic(Some(((0, 0), (0))), (364, 337)),
children: [
],
kind: Picture((
pic_index: (1),
can_merge: false,
content_origin: (0, 0),
uv_rect_handle: (
location: Some((
block_index: (1359),
epoch: (8),
)),
),
root_spatial_node_index: (0),
uv_rect_kind: Quad(
top_left: (0.12100639194250107, -0.02938946895301342, 0, 1),
top_right: (0.9975934624671936, 0.13756011426448822, 0, 1),
bottom_left: (-0.03355956822633743, 0.9174286723136902, 0, 1),
bottom_right: (0.8430274724960327, 1.0843782424926758, 0, 1),
),
device_pixel_scale: 1,
)),
clear_mode: Transparent,
saved_index: None,
),// [1]
(
location: Dynamic(Some(((364, 0), (0))), (113, 97)),
children: [
],
kind: CacheMask((
actual_rect: ((0, 792), (113, 97)),
root_spatial_node_index: (0),
clip_node_range: (
first: 4,
count: 2,
),
snap_offsets: (
top_left: (0, 0),
bottom_right: (0, 0),
),
device_pixel_scale: 1,
)),
clear_mode: One,
saved_index: None,
),// [2]
(
location: Fixed(((0, 0), (2560, 1622))),
children: [
(
index: 0,
frame_id: (2),
),// [0]
(
index: 1,
frame_id: (2),
),// [1]
(
index: 2,
frame_id: (2),
),// [2]
],
kind: Picture((
pic_index: (6),
can_merge: true,
content_origin: (0, 0),
uv_rect_handle: (
location: None,
),
root_spatial_node_index: (0),
uv_rect_kind: Rect,
device_pixel_scale: 1,
)),
clear_mode: Transparent,
saved_index: None,
),// [3]
],
task_data: [
(
data: (0, 0, 364, 337, 0, 1, 0, 0),
),// [0]
(
data: (0, 0, 364, 337, 0, 1, 0, 0),
),// [1]
(
data: (364, 0, 113, 97, 0, 1, 0, 792),
),// [2]
(
data: (0, 0, 2560, 1622, 0, 1, 0, 0),
),// [3]
],
cacheable_render_tasks: [
],
next_saved: (0),
frame_id: (2),
),
prim_headers: (
headers_int: [
(
z: (1),
task_address: (1),
specific_prim_address: 896,
clip_task_address: (32767),
transform_id: (16777219),
user_data: (65535, 0, 0),
),// [0]
(
z: (3),
task_address: (3),
specific_prim_address: 904,
clip_task_address: (32767),
transform_id: (0),
user_data: (65535, 0, 0),
),// [1]
(
z: (5),
task_address: (3),
specific_prim_address: 900,
clip_task_address: (32767),
transform_id: (2),
user_data: (65535, 0, 0),
),// [2]
(
z: (7),
task_address: (3),
specific_prim_address: 848,
clip_task_address: (0),
transform_id: (16777219),
user_data: (3184, 1, 65536),
),// [3]
(
z: (9),
task_address: (3),
specific_prim_address: 5888,
clip_task_address: (32767),
transform_id: (16777220),
user_data: (65535, 0, 0),
),// [4]
],
headers_float: [
(
local_rect: ((0, 0), (324, 324)),
local_clip_rect: ((0, 0), (324, 324)),
),// [0]
(
local_rect: ((0, 0), (2560, 1474)),
local_clip_rect: ((0, 0), (2560, 1474)),
),// [1]
(
local_rect: ((0, 0), (2560, 1474)),
local_clip_rect: ((0, 0), (2560, 1474)),
),// [2]
(
local_rect: ((0, 0), (324, 324)),
local_clip_rect: ((0, 0), (324, 295)),
),// [3]
(
local_rect: ((0, 0), (324, 324)),
local_clip_rect: ((0, 0), (324, 295)),
),// [4]
],
),
gpu_cache_frame_id: (2),
deferred_resolves: [
],
has_texture_cache_tasks: true,
has_been_rendered: false,
debug_items: [
],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment