Skip to content

Commit

Permalink
tests: Add tests for ImageToMemory and MemoryToImage
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyBarbour committed Aug 8, 2023
1 parent ce77b2d commit dddab54
Show file tree
Hide file tree
Showing 4 changed files with 719 additions and 0 deletions.
1 change: 1 addition & 0 deletions build-android/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ LOCAL_SRC_FILES += $(SRC_DIR)/tests/framework/layer_validation_tests.cpp \
$(SRC_DIR)/tests/unit/pipeline.cpp \
$(SRC_DIR)/tests/unit/buffer.cpp \
$(SRC_DIR)/tests/unit/external_memory_sync.cpp \
$(SRC_DIR)/tests/unit/host_image_copy.cpp \
$(SRC_DIR)/tests/unit/image.cpp \
$(SRC_DIR)/tests/unit/memory.cpp \
$(SRC_DIR)/tests/unit/object_lifetime.cpp \
Expand Down
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ target_sources(vk_layer_validation_tests PRIVATE
unit/gpu_av_positive.cpp
unit/graphics_library.cpp
unit/graphics_library_positive.cpp
unit/host_image_copy.cpp
unit/image.cpp
unit/image_positive.cpp
unit/imageless_framebuffer.cpp
Expand Down
6 changes: 6 additions & 0 deletions tests/framework/layer_validation_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,12 @@ class GraphicsLibraryTest : public VkLayerTest {
class NegativeGraphicsLibrary : public GraphicsLibraryTest {};
class PositiveGraphicsLibrary : public GraphicsLibraryTest {};

class NegativeHostImageCopy : public virtual VkLayerTest {
protected:
void InitHostImageCopyTest(VkFormat &compressed_format);
};
;

class ImageTest : public VkLayerTest {
public:
VkImageCreateInfo DefaultImageInfo();
Expand Down
Loading

0 comments on commit dddab54

Please sign in to comment.