mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 20:06:49 +01:00
Ported: Add INFO_SHADER_COMPILES_IN_FRAME to GL ES 3 render info - RandomShaper
f46d7583ff
This commit is contained in:
parent
152f9728b0
commit
13c4945b3a
@ -3197,28 +3197,34 @@
|
|||||||
<constant name="INFO_SHADER_CHANGES_IN_FRAME" value="3" enum="RenderInfo">
|
<constant name="INFO_SHADER_CHANGES_IN_FRAME" value="3" enum="RenderInfo">
|
||||||
The amount of shader rebinds in the frame.
|
The amount of shader rebinds in the frame.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="INFO_SURFACE_CHANGES_IN_FRAME" value="4" enum="RenderInfo">
|
<constant name="INFO_SHADER_COMPILES_IN_FRAME" value="4" enum="RenderInfo">
|
||||||
|
The peak amount of shaders that have been under compilation in the frame.
|
||||||
|
This is useful to know when asynchronous shader compilation has finished for the current shaders on screen.
|
||||||
|
[b]Note:[/b] For complete certainty, only assume there are no outstanding compilations when this value is zero for at least two frames in a row.
|
||||||
|
Unimplemented in the GLES2 rendering backend, always returns 0.
|
||||||
|
</constant>
|
||||||
|
<constant name="INFO_SURFACE_CHANGES_IN_FRAME" value="5" enum="RenderInfo">
|
||||||
The amount of surface changes in the frame.
|
The amount of surface changes in the frame.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="INFO_DRAW_CALLS_IN_FRAME" value="5" enum="RenderInfo">
|
<constant name="INFO_DRAW_CALLS_IN_FRAME" value="6" enum="RenderInfo">
|
||||||
The amount of draw calls in frame.
|
The amount of draw calls in frame.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="INFO_2D_ITEMS_IN_FRAME" value="6" enum="RenderInfo">
|
<constant name="INFO_2D_ITEMS_IN_FRAME" value="7" enum="RenderInfo">
|
||||||
The amount of 2d items in the frame.
|
The amount of 2d items in the frame.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="INFO_2D_DRAW_CALLS_IN_FRAME" value="7" enum="RenderInfo">
|
<constant name="INFO_2D_DRAW_CALLS_IN_FRAME" value="8" enum="RenderInfo">
|
||||||
The amount of 2d draw calls in frame.
|
The amount of 2d draw calls in frame.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="INFO_USAGE_VIDEO_MEM_TOTAL" value="8" enum="RenderInfo">
|
<constant name="INFO_USAGE_VIDEO_MEM_TOTAL" value="9" enum="RenderInfo">
|
||||||
Unimplemented in the GLES2 and GLES3 rendering backends, always returns 0.
|
Unimplemented in the GLES2 and GLES3 rendering backends, always returns 0.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="INFO_VIDEO_MEM_USED" value="9" enum="RenderInfo">
|
<constant name="INFO_VIDEO_MEM_USED" value="10" enum="RenderInfo">
|
||||||
The amount of video memory used, i.e. texture and vertex memory combined.
|
The amount of video memory used, i.e. texture and vertex memory combined.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="INFO_TEXTURE_MEM_USED" value="10" enum="RenderInfo">
|
<constant name="INFO_TEXTURE_MEM_USED" value="11" enum="RenderInfo">
|
||||||
The amount of texture memory used.
|
The amount of texture memory used.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="INFO_VERTEX_MEM_USED" value="11" enum="RenderInfo">
|
<constant name="INFO_VERTEX_MEM_USED" value="12" enum="RenderInfo">
|
||||||
The amount of vertex memory used.
|
The amount of vertex memory used.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="FEATURE_SHADERS" value="0" enum="Features">
|
<constant name="FEATURE_SHADERS" value="0" enum="Features">
|
||||||
|
@ -2392,6 +2392,7 @@ void VisualServer::_bind_methods() {
|
|||||||
BIND_ENUM_CONSTANT(INFO_VERTICES_IN_FRAME);
|
BIND_ENUM_CONSTANT(INFO_VERTICES_IN_FRAME);
|
||||||
BIND_ENUM_CONSTANT(INFO_MATERIAL_CHANGES_IN_FRAME);
|
BIND_ENUM_CONSTANT(INFO_MATERIAL_CHANGES_IN_FRAME);
|
||||||
BIND_ENUM_CONSTANT(INFO_SHADER_CHANGES_IN_FRAME);
|
BIND_ENUM_CONSTANT(INFO_SHADER_CHANGES_IN_FRAME);
|
||||||
|
BIND_ENUM_CONSTANT(INFO_SHADER_COMPILES_IN_FRAME);
|
||||||
BIND_ENUM_CONSTANT(INFO_SURFACE_CHANGES_IN_FRAME);
|
BIND_ENUM_CONSTANT(INFO_SURFACE_CHANGES_IN_FRAME);
|
||||||
BIND_ENUM_CONSTANT(INFO_DRAW_CALLS_IN_FRAME);
|
BIND_ENUM_CONSTANT(INFO_DRAW_CALLS_IN_FRAME);
|
||||||
BIND_ENUM_CONSTANT(INFO_2D_ITEMS_IN_FRAME);
|
BIND_ENUM_CONSTANT(INFO_2D_ITEMS_IN_FRAME);
|
||||||
|
@ -1032,6 +1032,7 @@ public:
|
|||||||
INFO_VERTICES_IN_FRAME,
|
INFO_VERTICES_IN_FRAME,
|
||||||
INFO_MATERIAL_CHANGES_IN_FRAME,
|
INFO_MATERIAL_CHANGES_IN_FRAME,
|
||||||
INFO_SHADER_CHANGES_IN_FRAME,
|
INFO_SHADER_CHANGES_IN_FRAME,
|
||||||
|
INFO_SHADER_COMPILES_IN_FRAME,
|
||||||
INFO_SURFACE_CHANGES_IN_FRAME,
|
INFO_SURFACE_CHANGES_IN_FRAME,
|
||||||
INFO_DRAW_CALLS_IN_FRAME,
|
INFO_DRAW_CALLS_IN_FRAME,
|
||||||
INFO_2D_ITEMS_IN_FRAME,
|
INFO_2D_ITEMS_IN_FRAME,
|
||||||
|
Loading…
Reference in New Issue
Block a user