MCPcopy Create free account
hub / github.com/DragonJoker/RenderGraph / createImageCube

Function createImageCube

test/Common.cpp:155–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 }
154
155 crg::ImageData createImageCube( std::string name
156 , crg::PixelFormat format
157 , uint32_t mipLevels
158 , uint32_t arrayLayers )
159 {
160 return crg::ImageData{ std::move( name )
161 , crg::ImageCreateFlags::eCubeCompatible
162 , crg::ImageType::e2D
163 , format
164 , { 1024, 1024u }
165 , ( crg::ImageUsageFlags::eColorAttachment
166 | crg::ImageUsageFlags::eSampled )
167 , mipLevels
168 , arrayLayers * 6u };
169 }
170
171 crg::ImageViewData createView( std::string name
172 , crg::ImageId image

Callers 2

TESTFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68