summaryrefslogtreecommitdiffstats
path: root/servers/rendering/rendering_device_binds.h
diff options
context:
space:
mode:
Diffstat (limited to 'servers/rendering/rendering_device_binds.h')
-rw-r--r--servers/rendering/rendering_device_binds.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/servers/rendering/rendering_device_binds.h b/servers/rendering/rendering_device_binds.h
index e173400299..5f21207579 100644
--- a/servers/rendering/rendering_device_binds.h
+++ b/servers/rendering/rendering_device_binds.h
@@ -53,7 +53,9 @@
class RDTextureFormat : public RefCounted {
GDCLASS(RDTextureFormat, RefCounted)
+
friend class RenderingDevice;
+ friend class RenderSceneBuffersRD;
RD::TextureFormat base;
@@ -91,6 +93,7 @@ class RDTextureView : public RefCounted {
GDCLASS(RDTextureView, RefCounted)
friend class RenderingDevice;
+ friend class RenderSceneBuffersRD;
RD::TextureView base;
@@ -286,7 +289,7 @@ public:
if (bytecode[i].size()) {
RD::ShaderStageSPIRVData stage;
stage.shader_stage = RD::ShaderStage(i);
- stage.spir_v = bytecode[i];
+ stage.spirv = bytecode[i];
stages.push_back(stage);
}
}
@@ -693,7 +696,7 @@ public:
RD_SETGET(Color, blend_constant)
void set_attachments(const TypedArray<RDPipelineColorBlendStateAttachment> &p_attachments) {
- attachments.push_back(p_attachments);
+ attachments = p_attachments;
}
TypedArray<RDPipelineColorBlendStateAttachment> get_attachments() const {