Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,580 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello, I am an Beginner to Direct11, I Dont know Why Visual Studio Intellisense tell me No Members found
This is my Direct3dcpp file
#include "Direct3d.h"
#include <cstdint>
#include <dxgi.h>
#pragma comment(lib,"d3d11.lib")
class Direct : public Direct11
{
public:
DXGI_SWAP_CHAIN_DESC sd = {};
sd.BufferDesc.
HRESULT hr;
};
This is my Direct3d Header File
#pragma once
#include <Windows.h>
#include <d3d11.h>
class Direct11
{
public:
Direct11(HWND handle)
{
}
protected:
ID3D11Device* device;
IDXGIAdapter* d_adapter;
ID3D11DeviceContext* d_context;
IDXGISwapChain* d_swp_chain;
};
My Problem is I Cannot Access the Members of the DXGI_SWAP_CHAIN_DESC, Visual Studio Just Shows Errors
What Am i Supposed to Do
The line
sd.BufferDesc.
is not in a function or other
like, just for test :
void test()
{
int n = sd.BufferDesc.Width;
}
where Intellisense works.