Home
last modified time | relevance | path

Searched refs:texture_ (Results 1 – 25 of 362) sorted by relevance

12345678910>>...15

/dports/devel/sdl2pp/libSDL2pp-0.16.1/SDL2pp/
H A DTexture.cc72 if (texture_ != nullptr) in ~Texture()
73 SDL_DestroyTexture(texture_); in ~Texture()
76 Texture::Texture(Texture&& other) noexcept : texture_(other.texture_) { in Texture()
77 other.texture_ = nullptr; in Texture()
83 if (texture_ != nullptr) in operator =()
84 SDL_DestroyTexture(texture_); in operator =()
85 texture_ = other.texture_; in operator =()
86 other.texture_ = nullptr; in operator =()
91 return texture_; in Get()
149 if (SDL_SetTextureAlphaMod(texture_, alpha) != 0) in SetAlphaMod()
[all …]
H A DTextureLock.cc31 Texture::LockHandle::LockHandle() : texture_(nullptr), pixels_(nullptr), pitch_(0) { in LockHandle()
34 Texture::LockHandle::LockHandle(Texture* texture, const Optional<Rect>& rect) : texture_(texture) { in LockHandle()
35 if (SDL_LockTexture(texture_->Get(), rect ? &*rect : nullptr, &pixels_, &pitch_) != 0) in LockHandle()
39 Texture::LockHandle::LockHandle(Texture::LockHandle&& other) noexcept : texture_(other.texture_), p… in LockHandle()
40 other.texture_ = nullptr; in LockHandle()
49 if (texture_ != nullptr) in operator =()
50 SDL_UnlockTexture(texture_->Get()); in operator =()
52 texture_ = other.texture_; in operator =()
56 other.texture_ = nullptr; in operator =()
64 if (texture_ != nullptr) in ~LockHandle()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/gpu/command_buffer/service/
H A Dshared_image_backing_factory_gl_texture.cc106 if (texture_) { in ~SharedImageBackingGLTexture()
107 texture_->RemoveLightweightRef(have_context()); in ~SharedImageBackingGLTexture()
108 texture_ = nullptr; in ~SharedImageBackingGLTexture()
114 return texture_ ? texture_->target() : passthrough_texture_->target(); in GetGLTarget()
118 return texture_ ? texture_->service_id() : passthrough_texture_->service_id(); in GetGLServiceId()
142 return texture_->GetLevelClearedRect(texture_->target(), 0); in ClearedRect()
149 texture_->SetLevelClearedRect(texture_->target(), 0, cleared_rect); in SetClearedRect()
164 DCHECK(texture_); in ProduceGLTexture()
166 manager, this, nullptr, tracker, texture_); in ProduceGLTexture()
216 IsPassthrough() ? nullptr : &texture_); in InitializeGLTexture()
[all …]
H A Dabstract_texture_impl_shared_context_state.cc47 texture_->SetLightweightRef(); in AbstractTextureImplOnSharedContext()
48 texture_->SetTarget(target, 1); in AbstractTextureImplOnSharedContext()
49 texture_->set_min_filter(GL_LINEAR); in AbstractTextureImplOnSharedContext()
50 texture_->set_mag_filter(GL_LINEAR); in AbstractTextureImplOnSharedContext()
56 texture_->SetImmutable(true, false); in AbstractTextureImplOnSharedContext()
81 return texture_; in GetTextureBase()
94 texture_->SetLevelStreamTextureImage( in BindStreamTextureImage()
176 texture_->MarkContextLost(); in ~AbstractTextureImplOnSharedContextPassthrough()
180 texture_.reset(); in ~AbstractTextureImplOnSharedContextPassthrough()
185 return texture_.get(); in GetTextureBase()
[all …]
H A Dtest_shared_image_backing.cc24 texture_(texture) {} in TestSharedImageRepresentationGLTexture()
32 gles2::Texture* const texture_; member in gpu::__anon7c4529a10111::TestSharedImageRepresentationGLTexture
46 texture_(std::move(texture)) {} in TestSharedImageRepresentationGLTexturePassthrough()
50 return texture_; in GetTexturePassthrough()
157 texture_->SetLightweightRef(); in TestSharedImageBacking()
158 texture_->SetTarget(GL_TEXTURE_2D, 1); in TestSharedImageBacking()
159 texture_->set_min_filter(GL_LINEAR); in TestSharedImageBacking()
160 texture_->set_mag_filter(GL_LINEAR); in TestSharedImageBacking()
166 texture_->SetImmutable(true, true); in TestSharedImageBacking()
206 return texture_->GetLevelClearedRect(texture_->target(), 0); in ClearedRect()
[all …]
H A Dshared_image_representation_dawn_ozone.cc51 if (texture_) { in BeginAccess()
85 texture_ = dawn_native::vulkan::WrapVulkanImage(device_, &descriptor); in BeginAccess()
86 if (!texture_) { in BeginAccess()
90 return texture_; in BeginAccess()
94 if (!texture_) { in EndAccess()
101 texture_, VK_IMAGE_LAYOUT_UNDEFINED, &export_info)) { in EndAccess()
111 dawn_procs_->data.textureDestroy(texture_); in EndAccess()
112 dawn_procs_->data.textureRelease(texture_); in EndAccess()
113 texture_ = nullptr; in EndAccess()
H A Dshared_image_representation_d3d.cc20 texture_(std::move(texture)) {} in SharedImageRepresentationGLTexturePassthroughD3D()
24 return texture_; in GetTexturePassthrough()
100 texture_ = dawn_native::d3d12::WrapSharedHandle(device_, &descriptor); in BeginAccess()
101 if (!texture_) { in BeginAccess()
105 return texture_; in BeginAccess()
109 if (!texture_) { in EndAccess()
116 if (dawn_native::IsTextureSubresourceInitialized(texture_, 0, 1, 0, 1)) { in EndAccess()
122 dawn_procs_.textureDestroy(texture_); in EndAccess()
124 dawn_procs_.textureRelease(texture_); in EndAccess()
125 texture_ = nullptr; in EndAccess()
H A Dshared_image_backing_gl_image.cc62 texture_(texture) {} in SharedImageRepresentationGLTextureImpl()
66 texture_ = nullptr; in ~SharedImageRepresentationGLTextureImpl()
72 return texture_; in GetTexture()
360 if (texture_) { in ReleaseGLTexture()
361 cleared_rect_ = texture_->GetLevelClearedRect(texture_->target(), 0); in ReleaseGLTexture()
373 if (texture_) in GetGLServiceId()
408 if (texture_) in ClearedRect()
409 return texture_->GetLevelClearedRect(texture_->target(), 0); in ClearedRect()
414 if (texture_) in SetClearedRect()
415 texture_->SetLevelClearedRect(texture_->target(), 0, cleared_rect); in SetClearedRect()
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/gpu/command_buffer/service/
H A Dabstract_texture_impl_shared_context_state.cc47 texture_->SetLightweightRef(); in AbstractTextureImplOnSharedContext()
48 texture_->SetTarget(target, 1); in AbstractTextureImplOnSharedContext()
56 texture_->SetImmutable(true, false); in AbstractTextureImplOnSharedContext()
66 texture_->RemoveLightweightRef(false); in ~AbstractTextureImplOnSharedContext()
73 texture_->RemoveLightweightRef(true); in ~AbstractTextureImplOnSharedContext()
76 texture_ = nullptr; in ~AbstractTextureImplOnSharedContext()
80 return texture_; in GetTextureBase()
93 texture_->SetLevelStreamTextureImage( in BindStreamTextureImage()
178 texture_.reset(); in ~AbstractTextureImplOnSharedContextPassthrough()
187 return texture_.get(); in GetTextureBase()
[all …]
H A Dtest_shared_image_backing.cc23 texture_(texture) {} in TestSharedImageRepresentationGLTexture()
31 gles2::Texture* const texture_; member in gpu::__anoncf1acd1c0111::TestSharedImageRepresentationGLTexture
45 texture_(std::move(texture)) {} in TestSharedImageRepresentationGLTexturePassthrough()
49 return texture_; in GetTexturePassthrough()
146 texture_ = new gles2::Texture(service_id_); in TestSharedImageBacking()
147 texture_->SetLightweightRef(); in TestSharedImageBacking()
148 texture_->SetTarget(GL_TEXTURE_2D, 1); in TestSharedImageBacking()
156 texture_->SetImmutable(true, true); in TestSharedImageBacking()
192 return texture_->GetLevelClearedRect(texture_->target(), 0); in ClearedRect()
196 texture_->SetLevelClearedRect(texture_->target(), 0, cleared_rect); in SetClearedRect()
[all …]
H A Dshared_image_representation_dawn_ozone.cc50 if (texture_) { in BeginAccess()
82 texture_ = dawn_native::vulkan::WrapVulkanImage(device_, &descriptor); in BeginAccess()
83 if (texture_) { in BeginAccess()
86 dawn_procs_->data.textureReference(texture_); in BeginAccess()
91 return texture_; in BeginAccess()
95 if (!texture_) { in EndAccess()
99 if (dawn_native::IsTextureSubresourceInitialized(texture_, 0, 1, 0, 1)) { in EndAccess()
105 dawn_procs_->data.textureDestroy(texture_); in EndAccess()
106 dawn_procs_->data.textureRelease(texture_); in EndAccess()
107 texture_ = nullptr; in EndAccess()
H A Dshared_image_representation_d3d.cc20 texture_(std::move(texture)) {} in SharedImageRepresentationGLTexturePassthroughD3D()
24 return texture_; in GetTexturePassthrough()
101 texture_ = dawn_native::d3d12::WrapSharedHandle(device_, &descriptor); in BeginAccess()
102 if (texture_) { in BeginAccess()
105 dawn_procs_.textureReference(texture_); in BeginAccess()
110 return texture_; in BeginAccess()
114 if (!texture_) { in EndAccess()
121 if (dawn_native::IsTextureSubresourceInitialized(texture_, 0, 1, 0, 1)) { in EndAccess()
127 dawn_procs_.textureDestroy(texture_); in EndAccess()
129 dawn_procs_.textureRelease(texture_); in EndAccess()
[all …]
H A Dexternal_vk_image_dawn_representation.cc80 texture_ = dawn_native::vulkan::WrapVulkanImage(device_, &descriptor); in BeginAccess()
82 if (texture_) { in BeginAccess()
85 dawn_procs_.textureReference(texture_); in BeginAccess()
88 return texture_; in BeginAccess()
92 if (!texture_) { in EndAccess()
98 dawn_native::vulkan::ExportSignalSemaphoreOpaqueFD(device_, texture_); in EndAccess()
100 if (dawn_native::IsTextureSubresourceInitialized(texture_, 0, 1, 0, 1)) { in EndAccess()
113 dawn_procs_.textureDestroy(texture_); in EndAccess()
114 dawn_procs_.textureRelease(texture_); in EndAccess()
115 texture_ = nullptr; in EndAccess()
/dports/misc/veles/veles-2018.05.0/src/visualization/
H A Ddigram.cc25 if (texture_ == nullptr) { in ~DigramWidget()
29 delete texture_; in ~DigramWidget()
36 delete texture_; in refresh()
79 texture_ = new QOpenGLTexture(QOpenGLTexture::Target2D); in initTextures()
80 texture_->setSize(256, 256); in initTextures()
81 texture_->setFormat(QOpenGLTexture::RG32F); in initTextures()
82 texture_->allocateStorage(); in initTextures()
104 texture_->generateMipMaps(); in initTextures()
106 texture_->setMinificationFilter(QOpenGLTexture::Nearest); in initTextures()
110 texture_->setWrapMode(QOpenGLTexture::ClampToEdge); in initTextures()
[all …]
/dports/graphics/urho3d/Urho3D-1.7.1/Source/Urho3D/Urho2D/
H A DSprite2D.cpp63 if (texture_) in BeginLoad()
64 loadTexture_ = texture_; in BeginLoad()
74 if (loadTexture_ == texture_) in BeginLoad()
75 texture_.Reset(); in BeginLoad()
93 if (texture_) in EndLoad()
94 SetRectangle(IntRect(0, 0, texture_->GetWidth(), texture_->GetHeight())); in EndLoad()
99 if (loadTexture_ == texture_) in EndLoad()
100 texture_.Reset(); in EndLoad()
109 texture_ = texture; in SetTexture()
172 if (!texture_) in GetTextureRectangle()
[all …]
/dports/games/frogatto/frogatto-1.3.1/src/
H A Dimage_widget.cpp21 : texture_(graphics::texture::get(fname)), rotate_(0.0) in image_widget()
28 : texture_(tex), rotate_(0.0) in image_widget()
41 texture_ = graphics::texture::get(v["image"].as_string()); in image_widget()
49 w = texture_.width(); in init()
53 h = texture_.height(); in init()
65 GLfloat(area_.x())/texture_.width(), in handle_draw()
66 GLfloat(area_.y())/texture_.height(), in handle_draw()
75 texture_ = graphics::texture::get(v.as_string()); in set_value()
85 return variant(texture_.get_id()); in get_value()
89 return variant(texture_.width()); in get_value()
[all …]
H A Dframe.cpp177 …ASSERT_EQ(intersection_rect(info.area, rect(0, 0, texture_.width(), texture_.height())), info.area… in frame()
259 texture_ = graphics::texture::get(image_); in set_palettes()
294 if(!texture_.valid()) { in build_alpha_from_frame_info()
306 ASSERT_LT(area.x(), texture_.width()); in build_alpha_from_frame_info()
308 ASSERT_LT(area.y() + y, texture_.height()); in build_alpha_from_frame_info()
321 if(!texture_.valid()) { in build_alpha()
384 a += texture_.width(); in build_alpha()
404 a += texture_.width(); in build_alpha()
477 rect[0] = texture_.translate_coord_x(rect[0]); in draw_into_blit_queue()
482 blit.set_texture(texture_.get_id()); in draw_into_blit_queue()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/angle/third_party/glmark2/src/src/scene-terrain/
H A Dbase-renderer.cpp25 texture_(0), input_texture_(0), fbo_(0), depth_renderbuffer_(0), in BaseRenderer()
34 glDeleteTextures(1, &texture_); in ~BaseRenderer()
76 glBindTexture(GL_TEXTURE_2D, texture_); in update_mipmap()
84 if (texture_) { in recreate()
85 glDeleteTextures(1, &texture_); in recreate()
86 texture_ = 0; in recreate()
103 glGenTextures(1, &texture_); in create_texture()
104 glBindTexture(GL_TEXTURE_2D, texture_); in create_texture()
113 if (texture_) { in update_texture_parameters()
114 glBindTexture(GL_TEXTURE_2D, texture_); in update_texture_parameters()
[all …]
/dports/games/scorched3d/scorched/src/common/tank/
H A DTankAvatar.cpp39 texture_ = 0; in TankAvatar()
61 texture_ = 0; in clear()
118 texture_ = 0; in setFromBuffer()
129 texture_ = store.texture_; in setFromBuffer()
133 if (!texture_) in setFromBuffer()
135 texture_ = new GLTexture; in setFromBuffer()
136 texture_->create(png); in setFromBuffer()
140 store.texture_ = texture_; in setFromBuffer()
164 if (!texture_) return getDefaultTexture(); in getTexture()
165 return texture_; in getTexture()
/dports/benchmarks/glmark2/glmark2-2021.12/src/scene-terrain/
H A Dbase-renderer.cpp33 glDeleteTextures(1, &texture_);
82 if (texture_ && GLExtensions::GenerateMipmap &&
84 glBindTexture(GL_TEXTURE_2D, texture_);
92 if (texture_) {
93 glDeleteTextures(1, &texture_);
94 texture_ = 0;
116 glGenTextures(1, &texture_);
117 glBindTexture(GL_TEXTURE_2D, texture_);
126 if (texture_) {
127 glBindTexture(GL_TEXTURE_2D, texture_);
[all …]
/dports/games/scorched3d/scorched/src/client/GLEXT/
H A DGLTextureReferenceData.cpp29 texture_(0), in GLTextureReferenceData()
41 delete texture_; in reset()
42 texture_ = 0; in reset()
47 if (!texture_) in getTexture()
50 texture_ = new GLTexture(); in getTexture()
51 texture_->create(image, texState_ & GLTextureReference::eMipMap); in getTexture()
58 return texture_; in getTexture()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/modules/webgpu/
H A Dgpu_swap_chain.cc35 visitor->Trace(texture_); in Trace()
40 texture_ = nullptr; in Neuter()
65 if (texture_) { in getCurrentTexture()
66 return texture_; in getCurrentTexture()
72 texture_ = MakeGarbageCollected<GPUTexture>(device_, dawn_client_texture); in getCurrentTexture()
73 return texture_; in getCurrentTexture()
78 DCHECK(texture_); in OnTextureTransferred()
79 texture_ = nullptr; in OnTextureTransferred()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/modules/webgpu/
H A Dgpu_swap_chain.cc37 visitor->Trace(texture_); in Trace()
42 texture_ = nullptr; in Neuter()
72 if (texture_) { in getCurrentTexture()
73 return texture_; in getCurrentTexture()
79 texture_ = in getCurrentTexture()
81 return texture_; in getCurrentTexture()
86 DCHECK(texture_); in OnTextureTransferred()
87 texture_ = nullptr; in OnTextureTransferred()
/dports/games/rlvm/rlvm-release-0.14-77-gfabf134a/src/systems/sdl/
H A Dsdl_render_to_texture_surface.cc48 : texture_(new Texture(render_to_texture(), size.width(), size.height())) { in SDLRenderToTextureSurface()
73 if (texture_) in RenderToScreen()
74 texture_->RenderToScreen(src, dst, opacity); in RenderToScreen()
80 if (texture_) in RenderToScreen()
81 texture_->RenderToScreen(src, dst, opacity); in RenderToScreen()
141 if (texture_) in GetSize()
142 return Size(texture_->width(), texture_->height()); in GetSize()
159 texture_.reset(); in Observe()
/dports/www/chromium-legacy/chromium-88.0.4324.182/gpu/command_buffer/tests/
H A Dgl_cube_map_texture_unittest.cc42 glGenTextures(1, &texture_); in SetUp()
43 glBindTexture(GL_TEXTURE_CUBE_MAP, texture_); in SetUp()
56 glDeleteTextures(1, &texture_); in TearDown()
64 GLuint texture_; member in gpu::GLCubeMapTextureTest
77 texture_, 0); in TEST_P()
80 glBindTexture(GL_TEXTURE_CUBE_MAP, texture_); in TEST_P()
91 glBindTexture(GL_TEXTURE_CUBE_MAP, texture_); in TEST_P()
103 texture_, 0); in TEST_P()
118 glBindTexture(GL_TEXTURE_CUBE_MAP, texture_); in TEST_P()
127 texture_, 0); in TEST_P()

12345678910>>...15