Skip to content

Update 01_Image_view_and_sampler.adoc - #271

Open
oskarTom wants to merge 2 commits into
KhronosGroup:mainfrom
oskarTom:patch-3
Open

Update 01_Image_view_and_sampler.adoc#271
oskarTom wants to merge 2 commits into
KhronosGroup:mainfrom
oskarTom:patch-3

Conversation

@oskarTom

Copy link
Copy Markdown
Contributor

Removed some fields which appear early but are introduced only later in the text.

Added a missing .addressModeW field

Removed some fields which appear early but are introduced only later in the text.
@SaschaWillems

Copy link
Copy Markdown
Collaborator

Not sure if we need addressModeW. The tutorial only ever uses 2D images, so a value for this field doesn't do anything.

Removed .addressModeW flags
@oskarTom

Copy link
Copy Markdown
ContributorAuthor

Yeah, probably not. It was included in two out of three code blocks so I had added it to the one where it was missing. I have now removed it from all three blocks.

@CLAassistant

CLAassistant commented Jul 3, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@asuessenbachasuessenbach left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you should rebase your PR with the current state. This file has changed substantially, long before you uploaded your PR.

Moreover, if you change code snippets in the docu, you should probably change the corresponding actual code in the cpp file as well.

----
vk::SamplerCreateInfo samplerInfo{.magFilter = vk::Filter::eLinear, .minFilter = vk::Filter::eLinear, .mipmapMode = vk::SamplerMipmapMode::eLinear,
.addressModeU = vk::SamplerAddressMode::eRepeat, .addressModeV = vk::SamplerAddressMode::eRepeat};
vk::SamplerCreateInfo samplerInfo{.magFilter = vk::Filter::eLinear, .minFilter = vk::Filter::eLinear,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you remove the .mipmapMode ?

vk::PhysicalDeviceProperties properties = physicalDevice.getProperties();
vk::SamplerCreateInfo samplerInfo{.magFilter = vk::Filter::eLinear, .minFilter = vk::Filter::eLinear, .mipmapMode = vk::SamplerMipmapMode::eLinear,
.addressModeU = vk::SamplerAddressMode::eRepeat, .addressModeV = vk::SamplerAddressMode::eRepeat, .addressModeW = vk::SamplerAddressMode::eRepeat,
vk::SamplerCreateInfo samplerInfo{.magFilter = vk::Filter::eLinear, .minFilter = vk::Filter::eLinear,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@oskarTom@SaschaWillems@CLAassistant@asuessenbach