From bd4d43023d3b164e316c26e10112e0bca3431000 Mon Sep 17 00:00:00 2001 From: ARez Date: Thu, 17 Aug 2023 14:44:58 +0200 Subject: [PATCH] Add missing RenderingDevice method descriptions --- doc/classes/RenderingDevice.xml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/doc/classes/RenderingDevice.xml b/doc/classes/RenderingDevice.xml index 5c819145113..8984c542530 100644 --- a/doc/classes/RenderingDevice.xml +++ b/doc/classes/RenderingDevice.xml @@ -29,6 +29,12 @@ + Clears the contents of the [param buffer], clearing [param size_bytes] bytes, starting at [param offset]. Always raises a memory barrier. + Prints an error if: + - the size isn't a multiple of four + - the region specified by [param offset] + [param size_bytes] exceeds the buffer + - a draw list is currently active (created by [method draw_list_begin]) + - a compute list is currently active (created by [method compute_list_begin]) @@ -48,6 +54,11 @@ + Updates a region of [param size_bytes] bytes, starting at [param offset], in the buffer, with the specified [param data]. Raises a memory barrier except when [param post_barrier] is set to [constant BARRIER_MASK_NO_BARRIER]. + Prints an error if: + - the region specified by [param offset] + [param size_bytes] exceeds the buffer + - a draw list is currently active (created by [method draw_list_begin]) + - a compute list is currently active (created by [method compute_list_begin]) @@ -61,6 +72,7 @@ + Raises a Vulkan compute barrier in the specified [param compute_list]. @@ -92,6 +104,7 @@ + Tells the GPU what compute pipeline to use when processing the compute list. If the shader has changed since the last time this function was called, Godot will unbind all descriptor sets and will re-bind them inside [method compute_list_dispatch]. @@ -100,6 +113,7 @@ + Binds the [param uniform_set] to this [param compute_list]. Godot ensures that all textures in the uniform set have the correct Vulkan access masks. If Godot had to change access masks of textures, it will raise a Vulkan image memory barrier. @@ -644,6 +658,7 @@ + Returns the internal vertex input mask. Internally, the vertex input mask is an unsigned integer consisting of the locations (specified in GLSL via. [code]layout(location = ...)[/code]) of the input variables (specified in GLSL by the [code]in[/code] keyword). @@ -830,7 +845,7 @@ - It can be accessed with the RID that is returned. + Creates a new uniform buffer. It can be accessed with the RID that is returned. Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method. @@ -840,7 +855,7 @@ - It can be accessed with the RID that is returned. + Creates a new uniform set. It can be accessed with the RID that is returned. Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method. @@ -848,6 +863,7 @@ + Checks if the [param uniform_set] is valid, i.e. is owned.