mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 06:03:09 +00:00
Expose more state in RenderSceneBuffersRD
This commit is contained in:
parent
97b8ad1af0
commit
9442eb8194
@ -89,6 +89,12 @@
|
||||
If [param msaa] is [b]true[/b] and MSAA is enabled, this returns the MSAA variant of the buffer.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_fsr_sharpness" qualifiers="const">
|
||||
<return type="float" />
|
||||
<description>
|
||||
Returns the FSR sharpness value used while rendering the 3D content (if [method get_scaling_3d_mode] is an FSR mode).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_internal_size" qualifiers="const">
|
||||
<return type="Vector2i" />
|
||||
<description>
|
||||
@ -107,6 +113,24 @@
|
||||
Returns the render target associated with this buffers object.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_scaling_3d_mode" qualifiers="const">
|
||||
<return type="int" enum="RenderingServer.ViewportScaling3DMode" />
|
||||
<description>
|
||||
Returns the scaling mode used for upscaling.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_screen_space_aa" qualifiers="const">
|
||||
<return type="int" enum="RenderingServer.ViewportScreenSpaceAA" />
|
||||
<description>
|
||||
Returns the screen-space antialiasing method applied.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_target_size" qualifiers="const">
|
||||
<return type="Vector2i" />
|
||||
<description>
|
||||
Returns the target size of the render buffer (size after upscaling).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_texture" qualifiers="const">
|
||||
<return type="RID" />
|
||||
<param index="0" name="context" type="StringName" />
|
||||
@ -123,6 +147,12 @@
|
||||
Returns the texture format information with which a cached texture was created.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_texture_samples" qualifiers="const">
|
||||
<return type="int" enum="RenderingDevice.TextureSamples" />
|
||||
<description>
|
||||
Returns the number of MSAA samples used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_texture_slice">
|
||||
<return type="RID" />
|
||||
<param index="0" name="context" type="StringName" />
|
||||
@ -157,6 +187,12 @@
|
||||
Returns a specific view of a slice (layer or mipmap) for a cached texture.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_use_debanding" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Returns [code]true[/code] if debanding is enabled.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_use_taa" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
|
@ -70,8 +70,14 @@ void RenderSceneBuffersRD::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("get_render_target"), &RenderSceneBuffersRD::get_render_target);
|
||||
ClassDB::bind_method(D_METHOD("get_view_count"), &RenderSceneBuffersRD::get_view_count);
|
||||
ClassDB::bind_method(D_METHOD("get_internal_size"), &RenderSceneBuffersRD::get_internal_size);
|
||||
ClassDB::bind_method(D_METHOD("get_target_size"), &RenderSceneBuffersRD::get_target_size);
|
||||
ClassDB::bind_method(D_METHOD("get_scaling_3d_mode"), &RenderSceneBuffersRD::get_scaling_3d_mode);
|
||||
ClassDB::bind_method(D_METHOD("get_fsr_sharpness"), &RenderSceneBuffersRD::get_fsr_sharpness);
|
||||
ClassDB::bind_method(D_METHOD("get_msaa_3d"), &RenderSceneBuffersRD::get_msaa_3d);
|
||||
ClassDB::bind_method(D_METHOD("get_texture_samples"), &RenderSceneBuffersRD::get_texture_samples);
|
||||
ClassDB::bind_method(D_METHOD("get_screen_space_aa"), &RenderSceneBuffersRD::get_screen_space_aa);
|
||||
ClassDB::bind_method(D_METHOD("get_use_taa"), &RenderSceneBuffersRD::get_use_taa);
|
||||
ClassDB::bind_method(D_METHOD("get_use_debanding"), &RenderSceneBuffersRD::get_use_debanding);
|
||||
}
|
||||
|
||||
void RenderSceneBuffersRD::update_sizes(NamedTexture &p_named_texture) {
|
||||
|
Loading…
Reference in New Issue
Block a user