修改RenderPass构造函数访问权限
This commit is contained in:
parent
e91cc9c621
commit
8e77e09d77
@ -18,7 +18,9 @@ class RenderPass
|
|||||||
|
|
||||||
VkFormat color_format,depth_format;
|
VkFormat color_format,depth_format;
|
||||||
|
|
||||||
public:
|
private:
|
||||||
|
|
||||||
|
friend class Device;
|
||||||
|
|
||||||
RenderPass(VkDevice d,VkRenderPass rp,VkFormat cf,VkFormat df)
|
RenderPass(VkDevice d,VkRenderPass rp,VkFormat cf,VkFormat df)
|
||||||
{
|
{
|
||||||
@ -27,6 +29,9 @@ public:
|
|||||||
color_format=cf;
|
color_format=cf;
|
||||||
depth_format=df;
|
depth_format=df;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
virtual ~RenderPass();
|
virtual ~RenderPass();
|
||||||
|
|
||||||
operator VkRenderPass(){return render_pass;}
|
operator VkRenderPass(){return render_pass;}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user