Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Laszlo Agocs
qtrhi
Commits
e5873fd8
Commit
e5873fd8
authored
Jan 13, 2019
by
Laszlo Agocs
Browse files
Rename last remaining BasicRenderTargetData occurrences
Nothing "basic" about it. Jus use RenderTargetData.
parent
8a035698
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/rhi/qrhigles2.cpp
View file @
e5873fd8
...
...
@@ -1463,7 +1463,7 @@ void QRhiGles2::beginPass(QRhiCommandBuffer *cb,
QGles2CommandBuffer
*
cbD
=
QRHI_RES
(
QGles2CommandBuffer
,
cb
);
bool
needsColorClear
=
true
;
bool
needsDsClear
=
true
;
QGles2
Basic
RenderTargetData
*
rtD
=
nullptr
;
QGles2RenderTargetData
*
rtD
=
nullptr
;
QGles2CommandBuffer
::
Command
fbCmd
;
fbCmd
.
cmd
=
QGles2CommandBuffer
::
Command
::
BindFramebuffer
;
switch
(
rt
->
type
())
{
...
...
src/rhi/qrhigles2_p.h
View file @
e5873fd8
...
...
@@ -133,9 +133,9 @@ struct QGles2RenderPassDescriptor : public QRhiRenderPassDescriptor
void
release
()
override
;
};
struct
QGles2
Basic
RenderTargetData
struct
QGles2RenderTargetData
{
QGles2
Basic
RenderTargetData
(
QRhiImplementation
*
)
{
}
QGles2RenderTargetData
(
QRhiImplementation
*
)
{
}
QGles2RenderPassDescriptor
*
rp
=
nullptr
;
QSize
pixelSize
;
...
...
@@ -151,7 +151,7 @@ struct QGles2ReferenceRenderTarget : public QRhiReferenceRenderTarget
QSize
sizeInPixels
()
const
override
;
float
devicePixelRatio
()
const
override
;
QGles2
Basic
RenderTargetData
d
;
QGles2RenderTargetData
d
;
};
struct
QGles2TextureRenderTarget
:
public
QRhiTextureRenderTarget
...
...
@@ -166,7 +166,7 @@ struct QGles2TextureRenderTarget : public QRhiTextureRenderTarget
QRhiRenderPassDescriptor
*
newCompatibleRenderPassDescriptor
()
override
;
bool
build
()
override
;
QGles2
Basic
RenderTargetData
d
;
QGles2RenderTargetData
d
;
GLuint
framebuffer
=
0
;
friend
class
QRhiGles2
;
};
...
...
src/rhi/qrhinull_p.h
View file @
e5873fd8
...
...
@@ -88,9 +88,9 @@ struct QNullRenderPassDescriptor : public QRhiRenderPassDescriptor
void
release
()
override
;
};
struct
QNull
Basic
RenderTargetData
struct
QNullRenderTargetData
{
QNull
Basic
RenderTargetData
(
QRhiImplementation
*
)
{
}
QNullRenderTargetData
(
QRhiImplementation
*
)
{
}
QNullRenderPassDescriptor
*
rp
=
nullptr
;
QSize
pixelSize
;
...
...
@@ -105,7 +105,7 @@ struct QNullReferenceRenderTarget : public QRhiReferenceRenderTarget
QSize
sizeInPixels
()
const
override
;
float
devicePixelRatio
()
const
override
;
QNull
Basic
RenderTargetData
d
;
QNullRenderTargetData
d
;
};
struct
QNullTextureRenderTarget
:
public
QRhiTextureRenderTarget
...
...
@@ -120,7 +120,7 @@ struct QNullTextureRenderTarget : public QRhiTextureRenderTarget
QRhiRenderPassDescriptor
*
newCompatibleRenderPassDescriptor
()
override
;
bool
build
()
override
;
QNull
Basic
RenderTargetData
d
;
QNullRenderTargetData
d
;
};
struct
QNullShaderResourceBindings
:
public
QRhiShaderResourceBindings
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment