blob: e351dea936ca6f02e06cbdacee002b0193ce9b18 [file] [log] [blame]
Jamie Madill9e54b5a2016-05-25 12:57:39 -04001//
2// Copyright 2016 The ANGLE Project Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
6// FramebufferVk.cpp:
7// Implements the class methods for FramebufferVk.
8//
9
10#include "libANGLE/renderer/vulkan/FramebufferVk.h"
11
12#include "common/debug.h"
13
14namespace rx
15{
16
17FramebufferVk::FramebufferVk(const gl::FramebufferState &state) : FramebufferImpl(state)
18{
19}
20
21FramebufferVk::~FramebufferVk()
22{
23}
24
25gl::Error FramebufferVk::discard(size_t count, const GLenum *attachments)
26{
27 UNIMPLEMENTED();
28 return gl::Error(GL_INVALID_OPERATION);
29}
30
31gl::Error FramebufferVk::invalidate(size_t count, const GLenum *attachments)
32{
33 UNIMPLEMENTED();
34 return gl::Error(GL_INVALID_OPERATION);
35}
36
37gl::Error FramebufferVk::invalidateSub(size_t count,
38 const GLenum *attachments,
39 const gl::Rectangle &area)
40{
41 UNIMPLEMENTED();
42 return gl::Error(GL_INVALID_OPERATION);
43}
44
45gl::Error FramebufferVk::clear(ContextImpl *context, GLbitfield mask)
46{
47 UNIMPLEMENTED();
48 return gl::Error(GL_INVALID_OPERATION);
49}
50
51gl::Error FramebufferVk::clearBufferfv(ContextImpl *context,
52 GLenum buffer,
53 GLint drawbuffer,
54 const GLfloat *values)
55{
56 UNIMPLEMENTED();
57 return gl::Error(GL_INVALID_OPERATION);
58}
59
60gl::Error FramebufferVk::clearBufferuiv(ContextImpl *context,
61 GLenum buffer,
62 GLint drawbuffer,
63 const GLuint *values)
64{
65 UNIMPLEMENTED();
66 return gl::Error(GL_INVALID_OPERATION);
67}
68
69gl::Error FramebufferVk::clearBufferiv(ContextImpl *context,
70 GLenum buffer,
71 GLint drawbuffer,
72 const GLint *values)
73{
74 UNIMPLEMENTED();
75 return gl::Error(GL_INVALID_OPERATION);
76}
77
78gl::Error FramebufferVk::clearBufferfi(ContextImpl *context,
79 GLenum buffer,
80 GLint drawbuffer,
81 GLfloat depth,
82 GLint stencil)
83{
84 UNIMPLEMENTED();
85 return gl::Error(GL_INVALID_OPERATION);
86}
87
88GLenum FramebufferVk::getImplementationColorReadFormat() const
89{
90 UNIMPLEMENTED();
91 return GLenum();
92}
93
94GLenum FramebufferVk::getImplementationColorReadType() const
95{
96 UNIMPLEMENTED();
97 return GLenum();
98}
99
100gl::Error FramebufferVk::readPixels(ContextImpl *context,
101 const gl::Rectangle &area,
102 GLenum format,
103 GLenum type,
104 GLvoid *pixels) const
105{
106 UNIMPLEMENTED();
107 return gl::Error(GL_INVALID_OPERATION);
108}
109
110gl::Error FramebufferVk::blit(ContextImpl *context,
111 const gl::Rectangle &sourceArea,
112 const gl::Rectangle &destArea,
113 GLbitfield mask,
114 GLenum filter)
115{
116 UNIMPLEMENTED();
117 return gl::Error(GL_INVALID_OPERATION);
118}
119
120bool FramebufferVk::checkStatus() const
121{
122 UNIMPLEMENTED();
123 return bool();
124}
125
126void FramebufferVk::syncState(const gl::Framebuffer::DirtyBits &dirtyBits)
127{
128 UNIMPLEMENTED();
129}
130
131} // namespace rx