質問編集履歴
2
情報の追記
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -4,4 +4,91 @@ | |
| 4 4 | 
             
            画像の画面を自環境で見たいのですが、確認するにはどうすればよろしいのでしょうか?
         | 
| 5 5 | 
             
            (当方この画面がなんの画面なのかも理解していないのでその点もご教授いただけたら幸いです)
         | 
| 6 6 |  | 
| 7 | 
            -
            
         | 
| 7 | 
            +
            
         | 
| 8 | 
            +
             | 
| 9 | 
            +
             | 
| 10 | 
            +
             | 
| 11 | 
            +
            ```ここに言語を入力
         | 
| 12 | 
            +
            #pragma once
         | 
| 13 | 
            +
            #include <windows.h>
         | 
| 14 | 
            +
            #include "DXApplication.h"
         | 
| 15 | 
            +
             | 
| 16 | 
            +
            //class DXApplication;
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            class WinApplication
         | 
| 19 | 
            +
            {
         | 
| 20 | 
            +
            public:
         | 
| 21 | 
            +
            	static void Run(DXApplication* dxApp, HINSTANCE hInstance);
         | 
| 22 | 
            +
             | 
| 23 | 
            +
            private:
         | 
| 24 | 
            +
            	static LRESULT CALLBACK WindowProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
         | 
| 25 | 
            +
            };
         | 
| 26 | 
            +
            ```
         | 
| 27 | 
            +
             | 
| 28 | 
            +
            ```ここに言語を入力
         | 
| 29 | 
            +
            #pragma once
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            #include <string>
         | 
| 32 | 
            +
            #include <wchar.h>
         | 
| 33 | 
            +
            #include <windows.h>
         | 
| 34 | 
            +
            #include <d3d12.h>
         | 
| 35 | 
            +
            #include <dxgi1_6.h>
         | 
| 36 | 
            +
            #include <D3Dcompiler.h>
         | 
| 37 | 
            +
            #include <DirectXMath.h>
         | 
| 38 | 
            +
            #include <wrl.h>
         | 
| 39 | 
            +
            #include "DirectX-Headers-main/include/directx/d3dx12.h"
         | 
| 40 | 
            +
            #include <stdexcept>
         | 
| 41 | 
            +
            #include <vector>
         | 
| 42 | 
            +
             | 
| 43 | 
            +
            #pragma comment(lib, "d3d12.lib")
         | 
| 44 | 
            +
            #pragma comment(lib, "dxgi.lib")
         | 
| 45 | 
            +
            #pragma comment(lib,"d3dcompiler.lib")
         | 
| 46 | 
            +
             | 
| 47 | 
            +
            using Microsoft::WRL::ComPtr;
         | 
| 48 | 
            +
             | 
| 49 | 
            +
            class DXApplication
         | 
| 50 | 
            +
            {
         | 
| 51 | 
            +
            public:
         | 
| 52 | 
            +
            	DXApplication(unsigned int width, unsigned int height, std::wstring title);
         | 
| 53 | 
            +
            	void OnInit(HWND hwnd);
         | 
| 54 | 
            +
            	void OnUpdate();
         | 
| 55 | 
            +
            	void OnRender();
         | 
| 56 | 
            +
            	void OnDestroy();
         | 
| 57 | 
            +
             | 
| 58 | 
            +
            	const WCHAR* GetTitle() const { return title_.c_str(); }
         | 
| 59 | 
            +
            	LONG GetWindowWidth() const { return windowWidth_; }
         | 
| 60 | 
            +
            	LONG GetWindowHeight() const { return windowHeight_; }
         | 
| 61 | 
            +
             | 
| 62 | 
            +
            private:
         | 
| 63 | 
            +
            	static const unsigned int kFrameCount = 2;
         | 
| 64 | 
            +
             | 
| 65 | 
            +
            	std::wstring title_;
         | 
| 66 | 
            +
            	LONG windowWidth_;
         | 
| 67 | 
            +
            	LONG windowHeight_;
         | 
| 68 | 
            +
            	// パイプラインオブジェクト
         | 
| 69 | 
            +
            	ComPtr<ID3D12Device> device_;
         | 
| 70 | 
            +
            	ComPtr<ID3D12CommandAllocator> commandAllocator_;
         | 
| 71 | 
            +
            	ComPtr<ID3D12GraphicsCommandList> commandList_;
         | 
| 72 | 
            +
            	ComPtr<ID3D12CommandQueue> commandQueue_;
         | 
| 73 | 
            +
            	ComPtr<IDXGISwapChain4> swapchain_;
         | 
| 74 | 
            +
            	ComPtr<ID3D12DescriptorHeap> rtvHeaps_;             // レンダーターゲットヒープ
         | 
| 75 | 
            +
            	ComPtr<ID3D12Resource> renderTargets_[kFrameCount]; // バックバッファー
         | 
| 76 | 
            +
            	// フェンス
         | 
| 77 | 
            +
            	ComPtr<ID3D12Fence> fence_;
         | 
| 78 | 
            +
            	UINT64 fenceValue_;
         | 
| 79 | 
            +
            	HANDLE fenceEvent_;
         | 
| 80 | 
            +
            	void LoadPipeline(HWND hwnd);
         | 
| 81 | 
            +
            	void CreateD3D12Device(IDXGIFactory6* dxgiFactory, ID3D12Device** d3d12device);
         | 
| 82 | 
            +
            	void ThrowIfFailed(HRESULT hr);
         | 
| 83 | 
            +
             | 
| 84 | 
            +
            };
         | 
| 85 | 
            +
            ```
         | 
| 86 | 
            +
            ```ここに言語を入力
         | 
| 87 | 
            +
            int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int nCmdShow)
         | 
| 88 | 
            +
            //int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
         | 
| 89 | 
            +
            {
         | 
| 90 | 
            +
            	DXApplication dxApp(1280, 720, L"DX Sample");
         | 
| 91 | 
            +
            	WinApplication::Run(&dxApp, hInstance);
         | 
| 92 | 
            +
            	return 0;
         | 
| 93 | 
            +
            }
         | 
| 94 | 
            +
            ```
         | 
1
文法の修正
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -2,6 +2,6 @@ | |
| 2 2 | 
             
            上記問題と同じであろう問題に衝突しました
         | 
| 3 3 | 
             
            正確に同じ問題か確認したいので、
         | 
| 4 4 | 
             
            画像の画面を自環境で見たいのですが、確認するにはどうすればよろしいのでしょうか?
         | 
| 5 | 
            +
            (当方この画面がなんの画面なのかも理解していないのでその点もご教授いただけたら幸いです)
         | 
| 5 6 |  | 
| 6 | 
            -
             | 
| 7 7 | 
             
            
         | 
